in reply to Trying to find open connections at apache2

Webserver "connections" are by their very nature short-lived. The web-client makes a request and the server answers this request. This normally takes perhaps a few seconds and then the "connection" disappears.

If you have actived the status-module in your Apache-server, you can see which requests are being serviced and which IPs are linked to these requests.

Apache2::RequestRec::connection gets you the connection record for this request and the Apache2::Connection::get_remote_host gets you the client's IP or host name.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

  • Comment on Re: Trying to find open connections at apache2

Replies are listed 'Best First'.
Re^2: Trying to find open connections at apache2
by Cassi (Novice) on Nov 13, 2006 at 03:17 UTC
    http://httpd.apache.org/docs/2.0/mod/mod_status.html This one can be a solution for me but I cant see how to access this information as the Apache2::Status show me things about the Embedded interpreter status, and aparently cannot return the current hosts and requests being processed Some idea? Thanks
      http://search.cpan.org/~mjh/Apache-Scoreboard-2.08/lib/Apache/Scoreboard.pm I continue making tests and I now I found this module from CPAN, wich is an API to the scoreboard for modperl2, didnt made the tests with it but probably is exactly what I was looking for.
        Apache::VMonitor seems OK too. It is based upon Apache::Scoreboard

        CountZero

        "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law