Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

My web server is running CentOS and every time a certain page is accessed on my forum, httpd locks up and I can never seem to pinpoint the exact file.

Is there any way to view the pages that currently have requests open on a CentOS/UNIX-based server?

share|improve this question

3 Answers 3

up vote 4 down vote accepted

You can try using ApacheTop. It shows out output like this:

enter image description here

share|improve this answer

Did you try tail /var/log/apache2/access.log and tail /var/log/apache2/access.log? In case of problems, I usually start tail -F /var/log/apache2/*.log Notice the capital F, some Unices do not support it, in that case change it to f

share|improve this answer

If you have mod_status enabled (and possibly ExtendedStatus set to On), and you're in a whitelist like this:

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
<Location /server-status>
   SetHandler server-status
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
</Location>

you can get a list of what the processes and threads are doing, uptime, etc. at http://your.server/server-status. (Won't help you if your server is completely irresponsive, though.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.