Solved

too many httpd processes

Posted on 2002-05-11
3
550 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
Comment Utility
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
Comment Utility
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
Comment Utility
is this a duplicate question?
Anyway ...

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

16 Experts available now in Live!

Get 1:1 Help Now