How to check all URLs from requests still being processed by Apache on CentOS?
I am running Apache on CentOS and I have some requests that take a lot of time, some of them take more than 100 seconds, and this is not a problem because I am doing lots of processing with those scripts.
But I would like to see all currently active requests on my server (that the connection is still open). I don’t need to see the IP of the users, I need to see the URL they used to make the request (more importantly, I need to know the query parameters of the current open connections).
This is important because I can check my server’s CPU/RAM usage at any time (using top or free) and compare it with all the active opened connections in my Apache and check which query strings are causing more impact.
Using Apache logs does not help for many reasons already pointed by users in other threads. Maybe httpd has a command line that I can execute and it shows all active connections still not closed?
After some research, some people recommend using netstat but I dont think it can provide the request URL, just the IP of the requester.
Read more here: Source link
