
1st June 2012, 09:00
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
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?
|

1st June 2012, 09:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
Check the global apache log for errors, especially vlogger errors.
|

1st June 2012, 09:27
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
Where is they stored?
Just to me sure...
|

1st June 2012, 09:37
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
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
|

1st June 2012, 09:57
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
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.
|

1st June 2012, 10:02
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
Could it be something with the MySQL? is on a other server?
|

1st June 2012, 13:35
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
munin is installed and running...
|

1st June 2012, 16:58
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
Funny thing....
After i installed munin it runs nice....???!!!!???
|

3rd June 2012, 09:40
|
|
Member
|
|
Join Date: Sep 2011
Posts: 47
Thanks: 10
Thanked 0 Times in 0 Posts
|
|
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?
|

4th June 2012, 13:22
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,594 Times in 2,445 Posts
|
|
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).
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 04:03.
|
|
Recent comments
1 day 4 hours ago
1 day 4 hours ago
1 day 9 hours ago
1 day 15 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 4 hours ago
2 days 8 hours ago
2 days 10 hours ago