Solved

too many httpd processes

Posted on 2002-05-11
5
1,665 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now