LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-10-2019, 11:49 PM   #1
Klaipedaville
Member
 
Registered: Mar 2013
Posts: 110

Rep: Reputation: Disabled
Apahce MPM-Prefork ServerLimit Always Goes Over The Limit


Could anybody advise please, what do I need to set in this ServerLimit for it not to go over the limit? I would like to keep KeepAlive on as well. (Although I tried it with KeepAlive off but it did not help it either). I have now experimented with all the settings but could not figure it out.

1. I tried setting ServerLimit to 256 but after about 4 days it reached the limit of 256 and told me there were no slots available, the web-sites went down but Apache was running OK.

2. I tried setting ServerLimit to 512 but after about 10 days it reached the limit of 512 and told me there were no slots available, the web-sites went down but Apache was running OK.

3. I tried setting ServerLimit to 1024 but after about 20 days it reached the limit of 1024 and told me there were no slots available, the web-sites went down but Apache was running OK.

4. I have set it now to 2048 but I assume after a month or so it will reach the limit of 2048 again (as it always does) and tell me the same stuff.

5. I also tried various MaxRequestPerChild settings from 1 till 10000 but alas, it did not work.

What am I missing here? I have 4GB RAM in total for this one.

Code:
<IfModule mpm_prefork_module>
   ServerLimit          256
   MaxClients           256
   StartServers         10
   MinSpareServers      5
   MaxSpareServers      10
   MaxRequestsPerChild  100
</IfModule>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force remove apache2-mpm-prefork jchambers Linux - Newbie 4 04-20-2009 02:19 PM
Configure apache prefork MPM LinuxCommandos Linux - Server 1 11-07-2008 10:09 AM
what should i set in worker MPM and prefork MPM? modpriest Linux - Newbie 5 02-21-2008 06:25 PM
Replacing apache2-mpm-prefork iNeo Debian 1 02-06-2006 02:17 PM
Apache2 & prefork MPM, PHP4 XTJ7 Linux - Software 6 04-29-2004 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration