An inside view as to what apache has going on

A friend pointed me to this as an option, when trying to find out exactly what is going on with apache, you can run this:

ps auxw | egrep "sbin/apache|httpd" | awk '{print"-p " $2}' | xargs strace

“This one-liner will use strace to attach to all of the currently running apache processes output and piped from the initial “ps auxw” command into some awk.” This has been rewritten to make it a little more flexible with finding the running process, as the original only searched for sbin/apache, and on my server, apache is run from an odd location.






Leave a Reply

Your email address will not be published. Required fields are marked *