Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: MaxClients reached help
PostPosted: Wed Mar 17, 2010 9:31 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
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>


Top
   
 Post subject:
PostPosted: Wed Mar 17, 2010 12:18 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
The disk where Apache mod_rewrite is trying to create its lock files is either full or not writeable by the process concerned.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Thu Mar 18, 2010 9:57 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
How can I fix this problem?


Top
   
 Post subject:
PostPosted: Thu Mar 18, 2010 10:08 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
illusime wrote:
How can I fix this problem?

Delete files? What does

Code:
df -h

tell you?

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Sat Mar 20, 2010 3:51 am 
Offline
Junior Member

Joined: Sat Feb 27, 2010 12:43 am
Posts: 23
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


Top
   
 Post subject:
PostPosted: Sat Mar 20, 2010 4:03 am 
Offline
Senior Member
User avatar

Joined: Sun Mar 23, 2008 10:10 am
Posts: 71
Website: http://frontseed.com/
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.


Top
   
 Post subject:
PostPosted: Sat Mar 20, 2010 9:23 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
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...


Top
   
 Post subject:
PostPosted: Sat Mar 20, 2010 10:02 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group