Date: Mon, 7 Feb 2011 23:01:41 +0200 From: Igor Prokopenkov <cmyk777@gmail.com> To: freebsd-questions@freebsd.org Subject: How to count number of connections from nginx workers to php-cgi unix socket? Message-ID: <AANLkTikJZQx1_i1sQY40QwwLLAWFmt8qrujyNJNGNQin@mail.gmail.com>
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 http://zend.com/zce.php?c=ZEND010909 http://linkedin.com/in/igorprokopenkov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikJZQx1_i1sQY40QwwLLAWFmt8qrujyNJNGNQin>