Web server issue

Posted on 2009-04-21
Last Modified: 2012-05-06
We are having issues with our redhat webeserver where every once in a while it you can't access the site.  When this happens I look at the amount of HTTPD processes and it is at 241.  I also look at CPU and Memory ussage and it does not seem to be affected.  If i restart apache the process will go down and the site will come back up.  I'm thinking it may be somekind of a loop.  Can someone give me some advice of how to troubleshoot this issue?
Question by:kurtcostello
    LVL 13

    Expert Comment

    enable the extended status output in the httpd.conf file and then check out http://localhost/server-status/ when this next occurs to see what the processes are hung up on.

    Once you know what they were trying to serve you can then sort out that particular page.
    LVL 3

    Expert Comment

    check for free disk space
    check for open file handles (ulimit must say unlimited or a high limit)

    Paste the output of apache access (/var/log/httpd/access_log) & error (/var/log/httpd/error_log) logs

    Author Comment

    I can't seem to figure our how to turn extendedstatus on.  I change the config so it reads:
    <Location /server-status>
        SetHandler server-status
        ExtendedStatus On
        Order deny,allow
        Deny from all
        Allow from *.*.*.*


    But when I try to restart apache it says:

    Starting httpd: Syntax error on line 914 of /etc/httpd/conf/httpd.conf:
    ExtendedStatus not allowed here

    am I missing something?


    Author Comment

    ok I got it to work actually.  This won't use up space on the drive will it?
    LVL 13

    Expert Comment

    No not at all, it allows you to query the details of the server.

    lynx -dump http://localhost/server-status - use this command to show the information about each process, including what files are being served at the time.  If you fine one script or page constantly holding open processes you can then look at dealing with this page.  How you do this is your choice as the admin.
    LVL 13

    Expert Comment

    btw, the Allow from statement should be Allow from

    The server-status provides ALOT of information about your server and shouldn't be open to everyone.
    LVL 16

    Accepted Solution

    when it locks up can you post us the output of top and df -h ? Also, have you tried recompiling it with mpm-worker, instead of prefork?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    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…
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    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…

    737 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

    18 Experts available now in Live!

    Get 1:1 Help Now