| Author |
Message |
illusime
Joined: 26 Feb 2010
Posts: 23
|
| Posted: Wed Mar 17, 2010 8:31 am Post subject: MaxClients reached help |
|
|
I notice my site went blank and could not load. I decided to look at the apache error logs and found this:
What does it mean? How can I fix it? Thanks.
Code: [Tue Mar 16 08:24:18 2010] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Tue Mar 16 09:00:01 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Tue Mar 16 09:02:01 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
Here is my current apache2.conf
Code: <IfModule mpm_worker_module>
StartServers 1
MaxClients 100
MinSpareThreads 5
MaxSpareThreads 25
ThreadsPerChild 25
MaxRequestsPerChild 100
</IfModule> |
|
| Back to top |
|
pclissold
Joined: 24 Oct 2003
Posts: 855
Location: Netherlands
|
| Posted: Wed Mar 17, 2010 11:18 am Post subject: |
|
|
| The disk where Apache mod_rewrite is trying to create its lock files is either full or not writeable by the process concerned. |
|
| Back to top |
|
illusime
Joined: 26 Feb 2010
Posts: 23
|
| Posted: Thu Mar 18, 2010 8:57 am Post subject: |
|
|
| How can I fix this problem? |
|
| Back to top |
|
jed
Joined: 28 Mar 2009
Posts: 394
Location: New Jersey
|
| Posted: Thu Mar 18, 2010 9:08 am Post subject: |
|
|
illusime wrote: How can I fix this problem?
Delete files? What does
Code: df -h
tell you? |
|
| Back to top |
|
illusime
Joined: 26 Feb 2010
Posts: 23
|
| Posted: Sat Mar 20, 2010 2:51 am Post subject: |
|
|
My website is still keep going blank. I check the apache logs and here is what I found. It doesn't shut down properly and keeps running "No space left on device: mod_rewrite: could not create rewrite_log_lock" then hang up my website... Any fix for this?
Apache logs:
Fri Mar 19 16:52:00 2010] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Fri Mar 19 16:59:23 2010] [notice] mod_fcgid: process 3796 going graceful shutdown, sending SIGTERM
[Fri Mar 19 16:59:29 2010] [notice] mod_fcgid: process /var/www/fcgi-bin.d/php5-default/php-fcgi-wrapper(3796) exit(idle timeout), terminated by calling exit(), return code: 255
[Fri Mar 19 17:00:01 2010] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Mar 19 17:00:01 2010] [notice] Apache/2.2.8 (Ubuntu) mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
[Fri Mar 19 17:24:50 2010] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Fri Mar 19 18:00:07 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Fri Mar 19 18:02:01 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Fri Mar 19 18:04:01 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Fri Mar 19 18:06:01 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed |
|
| Back to top |
|
melon
Joined: 23 Mar 2008
Posts: 71
|
| Posted: Sat Mar 20, 2010 3:03 am Post subject: |
|
|
illusime wrote: My website is still keep going blank. I check the apache logs and here is what I found. It doesn't shut down properly and keeps running "No space left on device: mod_rewrite: could not create rewrite_log_lock" then hang up my website... Any fix for this?
I really don't get this. Have you tried freeing up some disk space as others suggested?
Also consider either expanding that disk where you log your apache things or make these logs less verbose.
After that, you can deal with the maxclients setting. |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1137
|
| Posted: Sat Mar 20, 2010 8:23 am Post subject: |
|
|
You appear to be out of disk space somewhere. What does
Code: df -h
tell you?
If the patient has a headache and a gushing head wound, you don't treat the headache with aspirin first... |
|
| Back to top |
|
glg
Joined: 09 Jan 2009
Posts: 452
|
| Posted: Sat Mar 20, 2010 9:02 am Post subject: |
|
|
hoopycat wrote: You appear to be out of disk space somewhere. What does
Code: df -h
tell you?
If the patient has a headache and a gushing head wound, you don't treat the headache with aspirin first...
Yeah, seriously. The MaxClients isn't a big deal, it just means a user would have to wait for a slot to open (turn down your keepalive to make this shorter), but the out of disk is a big problem. That's why one says error and the other crit. Deal with crit first. |
|
| Back to top |
|
| |