How to determine which URL is being processed by a specific HTTPD process?

I have a random HTTPD request on my web server that increases CPU usage. I look it in the Top. Each URL is dynamically generated each time it is requested. The foundation is Codeigniter. I use prefork Apache as my web server on Linux CentOS.

How can I find out which URL is being processed when using a processor? Can I associate a process id with an HTTP request in Apache logs? There are millions of pages on the site, so viewing the Codeignitor profiler does not help.

+6
source share
1 answer

You can add the PID to your log (see http://httpd.apache.org/docs/current/mod/mod_log_config.html -% P).

Or you can activate mod_status - this gives you a pretty useful live screen with the most recent URL of this child.

+5
source

Source: https://habr.com/ru/post/920055/


All Articles