Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is it possible to see what URLs are actively being served by nginx (i.e., see the URLs that are in the middle of being responded to, not the ones that nginx has finished responding to).

I would like to see these because I am using the nginx push module and am trying to figure out why the number of active (and write) connections rises all the time. These are requests that are held open a long time, so I'd like to be able to see what URLs are being handled by nginx at the moment, and ideally also some information about those clients (i.e. user-agent, ip address, would all be helpful).

share|improve this question
1  
I don't know of any way for nginx to do this natively. However, one way you could get this data is to put a proxy like Varnish in front of nginx (but disable the caching part of Varnish - since that isn't your goal). Varnish can display all the requests going to your backend (nginx) in real time, and the responses received from the backend - it also provides full headers, IP, etc. Not ideal, but perhaps an option if you don't get other suggestions. –  cyberx86 Dec 6 '11 at 23:52
    
Open a feature request in nginx's Trac: trac.nginx.org/nginx –  sendmoreinfo Dec 18 '11 at 15:59
    
do they write and active connection are growing on a similar pattern? if active is big and not write it may just be the keep-alive connections wiki.nginx.org/HttpStubStatusModule –  hellvinz Apr 27 '12 at 7:52

1 Answer 1

There's an extended status module (patch) as 3rd party module, I think it'd do it.

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.