LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Original Poster
Rep: Reputation: Disabled

Quote:
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 google.com 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 07:14 PM. Reason: clarity
 
Old 02-22-2013, 12:53 AM   #17
pintooo15
Member
 
Registered: May 2004
Location: on the interwebz
Distribution: linux mint 13/sled 11 sp2
Posts: 72

Rep: Reputation: 21
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.
 
  


Reply


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 10:58 AM
Firefox terminates if multiple instances of flash player running mutav Slackware 2 02-17-2010 01:55 PM
Running multiple instances of apache2 jordankoppole Linux - Software 8 04-23-2008 04:55 PM
Preventing multiple instances of a shell script from running concurrently Dave Lerner Programming 12 01-03-2007 09:27 PM
Why are multiple instances of mysqld running? philpq Linux - Newbie 2 02-17-2005 03:01 PM


All times are GMT -5. The time now is 05:30 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration