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 ??
I have not change anything in any config files regarding php or Apache2
Maby i need a cache plugin?
Check the global apache log for errors, especially vlogger errors.
Where is they stored?
Just to me sure...
[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
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.
Could it be something with the MySQL? is on a other server?
munin is installed and running...
After i installed munin it runs nice....???!!!!???
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?
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 08:40.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.