LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2003, 09:41 PM   #1
matthiashowell
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
httpd in ps not going away


I am running an apache web server on Linux.

After a period of time it stops responding.

ps -eaf | grep http

generates a whole bunch (like more than 100) of [httpd] entries. Some go back more than two hours.

What I can't figure out is:

Is apache not releasing these?
Is tomcat (the next spot in my webserver) not releasing them?
Is the apparent freezing not related to apache and these httpd entries

Is this a possible right forum to ask this question?

Thanks

Matthias
 
Old 09-24-2003, 02:02 AM   #2
shawnchin
LQ Newbie
 
Registered: Sep 2003
Location: Malaysia
Distribution: Redhat, Gentoo
Posts: 18

Rep: Reputation: 0
Quote:
generates a whole bunch (like more than 100) of [httpd] entries. Some go back more than two hours.
the whole bunch of httpd processes that you see are child processes forked by apache to handle requests multiple requests.

If you are running a development or personal web server, and are not expecting heavy traffic, you may tweak how many of these child/spare processes to spawn depending on the performance you want out of your webserver. The more childs it spawns, the better performance you get out of the web server, and the more resources apache will take up.

You may tweak this in your apache config file (httpd.conf), and look for fields such as MinSpareServer, MaxSpareServer, and StartServers
MinSpareServers : minimum child servers to have at each time
MaxSpareServers : maximum child servers to have at each time
StartServers : initial number of child servers to spawn when Apache starts


Cheers
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
httpd again... lkalman Linux - Software 1 07-06-2003 06:05 PM
httpd-2.0.43-1 pk21 Linux - Software 3 02-20-2003 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:15 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