Solved

too many httpd processes

Posted on 2002-05-11
5
1,683 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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é.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses

734 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