Solved

too many httpd processes

Posted on 2002-05-11
3
553 Views
Last Modified: 2010-05-18
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
  • 2
3 Comments
 
LVL 15

Expert Comment

by:samri
ID: 7004035
I looks like maybe your apache is having some problem, or you are under some denial-of-service attacck.

In either case, try to monitor your apache activity using http://your-server/server-status

You need to enable the feature.  Look in httpd.conf for the following directive, and uncomment the lines.  And make sure you add your IP address in "Allow from.." line.

-----------
ExtendedStatus On
#
# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 192.168.0 127.0.0
</Location>
-----------

What is your OS, and Apache version?
0
 
LVL 15

Expert Comment

by:samri
ID: 7004037
I looks like maybe your apache is having some problem, or you are under some denial-of-service attacck.

In either case, try to monitor your apache activity using http://your-server/server-status

You need to enable the feature.  Look in httpd.conf for the following directive, and uncomment the lines.  And make sure you add your IP address in "Allow from.." line.

-----------
ExtendedStatus On
#
# Allow server status reports, with the URL of http://servername/server-status
# Change the ".your_domain.com" to match your domain to enable.
#
<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 192.168.0 127.0.0
</Location>
-----------

Anothe thing to watch is, try using "netstat" from UNIX cmdline, and watch the remote-address field.  If there is too many connection from one specific IP address, it might be suspicious.

CHeck the server log (tail -f error.log), and see if there is any weird entries.

What is your RH, and Apache version?
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 50 total points
ID: 7004679
is this a duplicate question?
Anyway ...

# see following variables in httpd.conf
MinSpareServers
MaxSpareServers
StartServers
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best Way to Deploy a Heavy PHP/MySQL Website in AWS With Auto Scaling and Load Balancer Enabled? 13 148
XAMPP 14 44
htaccess restrict subdomain 4 118
Apache / XAMPP  authorisation 10 58
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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