Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st June 2012, 10:00
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default Slow Apache2

Hi all.

I have made myself a hosting setup following : http://www.howtoforge.com/multiserve...th-ispconfig-3

Now I have a problem with Apache2.

After a restart of Apache2 everything runs fast and nice but a couple of hours later it soooo long time to respond to http requests, after browsing a few sites it runs fast…??

Any ideas?
I have not change anything in any config files regarding php or Apache2

Maby i need a cache plugin?
Reply With Quote
Sponsored Links
  #2  
Old 1st June 2012, 10:19
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,007
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Check the global apache log for errors, especially vlogger errors.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 1st June 2012, 10:27
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Where is they stored?
Just to me sure...
Reply With Quote
  #4  
Old 1st June 2012, 10:37
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Got it...
/var/log/apache2/error.log

Nothing besides:

[Thu May 31 12:14:11 2012] [error] [client 212.37.xxx.xxx] File does not exist: /var/www/favicon.ico
sh: /usr/sbin/sendmail: not found
[Thu May 31 21:19:10 2012] [error] [client 66.249.xx.xx] File does not exist: /var/www/robots.txt
[Thu May 31 22:45:03 2012] [error] [client 204.68.xxx.xxx] File does not exist: /var/www/user
[Fri Jun 01 00:41:21 2012] [warn] child process 28477 still did not exit, sending a SIGTERM
[Fri Jun 01 00:41:21 2012] [warn] child process 31973 still did not exit, sending a SIGTERM
[Fri Jun 01 00:41:21 2012] [warn] child process 32178 still did not exit, sending a SIGTERM
[Fri Jun 01 00:41:22 2012] [notice] caught SIGTERM, shutting down
[Fri Jun 01 00:41:25 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jun 01 00:41:25 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Fri Jun 01 00:41:26 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 01 00:41:26 2012] [notice] Digest: done
[Fri Jun 01 00:41:28 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jun 01 00:41:28 2012] [notice] Apache/2.2.16 (Debian) DAV/2 mod_fcgid/2.3.6 PHP/5.3.3-7+squeeze9 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.7(2010-08-16) mod_ssl/2.2.16 OpenSSL/0.9.8o configured -- resuming normal operations
Reply With Quote
  #5  
Old 1st June 2012, 10:57
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,007
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Thats ok so far.

You should consider to install munin on your server o monitor all parameters to get an idea what is causing the slowdown.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 1st June 2012, 11:02
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Could it be something with the MySQL? is on a other server?
Reply With Quote
  #7  
Old 1st June 2012, 14:35
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default

munin is installed and running...
Reply With Quote
  #8  
Old 1st June 2012, 17:58
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Funny thing....
After i installed munin it runs nice....???!!!!???
Reply With Quote
  #9  
Old 3rd June 2012, 10:40
cpq cpq is offline
Member
 
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Well, tha wass a short pleasure.... :-(

It´s the same, after some houers it uses several sek to load a page the first time, then it speeds up.

Is there a good cache funktion i can use?
Reply With Quote
  #10  
Old 4th June 2012, 14:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

Try to fine-tune Apache (for example, decrease KeepALiveTimeout to something between 2 and 5 seconds): http://www.howtoforge.com/configurin...um_performance

Also, please use a PHP opcode cacher like Xcache or APC.

If you web app supports it, you can use memcached and/or tmpfs ( http://www.howtoforge.com/storing-fi...ory-with-tmpfs ) to reduce disk I/O.

You should also check if you can fine-tune/optimize MySQL (for example, reading InnoDB tables is much slower than MyISAM).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.1.4 causes Apache to have too many open files gkovacs Installation/Configuration 29 27th February 2013 09:59
Whole server went down wxman General 25 28th September 2012 19:32
Apache2 high load lano Server Operation 3 24th December 2011 18:29
PHP5, MySQL5 & Apache2 on Debian Leny Slow latheesan Installation/Configuration 2 6th January 2011 18:09
Site very slow after server migraion dimitar General 2 22nd February 2008 13:23


All times are GMT +2. The time now is 12:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.