Solved

too many httpd processes

Posted on 2002-05-11
5
1,677 Views
Last Modified: 2007-12-19
There are too many httpd processes in my RH linux server running Apache. It makes the loading average very high, and the websites very slow to connect, and finally server "down"!

How can I do so as to reduce to httpd processes, is a connection uses a httpd process, can a httpd process handles many connections?

Thanks.

Stanley
0
Comment
Question by:stanleyhuen
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7004664
# see following variables in httpd.conf
MinSpareServers
MaxSpareServers
StartServers
0
 
LVL 4

Expert Comment

by:MFCRich
ID: 7005811
Also,

MaxClients
0
 

Author Comment

by:stanleyhuen
ID: 7019786
The server has around 200-250 processes during peak hrs.
What values I should set them?

MinSpareServers
MaxSpareServers
StartServers
Comment
MaxClients

pls suggest.

Morever, any Apache modules can I install so that the apache server use less CPU and RAM?


Thanks.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7022382
> What values I should set them?
depends on your hardware resources, mainly RAM
keep in mind that each process needs at least 2MB memory. So you main memory should have at least 2MB * number of processes
0
 

Accepted Solution

by:
pvaz earned 100 total points
ID: 7027901
The problem as it was focused in the comments is on the apache configuracion file, and the resources of your computer, i will give you a configuracion on a server that as a Search Engine working, and with a minimum of 20.000 acesses to the main page.

MinSpareServers 5
MaxSpareServers 10
StartServers 10
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MaxRequestsPerChild 0
MaxClients 250

This should do the service.

And dont forget to put at least 256 MB of memory.

Hope this answers your question !

Paulo
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question