HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Slow Apache2 (http://www.howtoforge.com/forums/showthread.php?t=57484)

cpq 1st June 2012 09:00

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?

till 1st June 2012 09:19

Check the global apache log for errors, especially vlogger errors.

cpq 1st June 2012 09:27

Where is they stored?
Just to me sure...

cpq 1st June 2012 09:37

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

till 1st June 2012 09:57

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.

cpq 1st June 2012 10:02

Could it be something with the MySQL? is on a other server?

cpq 1st June 2012 13:35

munin is installed and running...

cpq 1st June 2012 16:58

Funny thing....
After i installed munin it runs nice....???!!!!???

cpq 3rd June 2012 09:40

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?

falko 4th June 2012 13:22

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).


All times are GMT +2. The time now is 11:56.

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