Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-21-2013, 08:11 PM   #16
LQ Newbie
Registered: Feb 2013
Location: Richmond, VA
Distribution: Mint 14 (Nadia)
Posts: 17

Original Poster
Rep: Reputation: Disabled

Originally Posted by jpollard View Post
Then impose a proper MaxClients limit.

count them as 5 per processor (you could also divide your memory size by the data space used by apache, then subtract 10. If the result is below 10, use 10.)

The only reason to allow apache to multi-thread is support concurrent connections. If that overloads the system, the only reasonable thing to do is limit the number threads to what the hardware will support.

256 might be reasonable for my system (8GB with 8 cores), but personally, 10 is enough.
[Quote from link I posted]..."This isn't just the processes hanging for a little bit - or hanging for a few hours. They're hanging indefinitely. Not only does the Apache session hang - but the request from the client hangs as well. For example, if you go to through a proxy, and it hangs, that request hangs forever as well. Now every time you try to connect back to the server it tries to send you to that Apache child. Which essentially makes the server unresponsive to you." -- pretty much describes EXACTLY what I'm experiencing, so my best guess is that it's a Glype-specific issue rather than an issue with Apache itself (I could be wrong though, feel free to speculate). I have made some modifications to apache2.conf and will monitor the situation in the meantime to see if it helps with the issues I've been experiencing (Specifically lowering MaxClients and other settings, however error logs showed MaxClients being hit around the time when I starting noticing the problems initially, so hopefully lowering the value isn't going to exacerbate the problem).

Last edited by idofxeno; 02-21-2013 at 08:14 PM. Reason: clarity
Old 02-22-2013, 01:53 AM   #17
Registered: May 2004
Location: India
Distribution: openSUSE Tumbleweed and SLED 12 SP2
Posts: 94

Rep: Reputation: 31
ashwin_cse , I didn't make it clear that I was not just pointing at the large number of processes that get spawned but also how exponentially the resource usage grows with each new child spawned...which may further be compounded by the reasons you gave.

Lots for me to learn from this thread.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Running multiple instances of Audacious (slightly urgent) hunternet93 Linux - Software 1 12-07-2010 11:58 AM
Firefox terminates if multiple instances of flash player running mutav Slackware 2 02-17-2010 02:55 PM
Running multiple instances of apache2 jordankoppole Linux - Software 8 04-23-2008 05:55 PM
Preventing multiple instances of a shell script from running concurrently Dave Lerner Programming 12 01-03-2007 10:27 PM
Why are multiple instances of mysqld running? philpq Linux - Newbie 2 02-17-2005 04:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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