Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Feb 2011 23:01:41 +0200
From:      Igor Prokopenkov <>
Subject:   How to count number of connections from nginx workers to php-cgi unix socket?
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
I need to count number of connections to php's cgi unix socket (created with
spawn-fci). When nginx initiates a connection to cgi socket one of spawned
php processes accepts this connection, processes input and outputs data. But
number of processes is limited and i want to be able to monitor amount of
free processes. I tried all available tools (netstat, sockstat even lsof)
but it seems there is no way to determine how many active connections from
nginx to unix socket. Please advise.

Best regards,
Igor Prokopenkov
Zend Certificied Engineer

Want to link to this message? Use this URL: <>