in reply to Re: CPU Usage by VirtualHost
in thread CPU Usage by VirtualHost

Stonehenge::Throttle uses the same /proc/pid/stats that I've been using ...

Replies are listed 'Best First'.
Re^3: CPU Usage by VirtualHost
by perrin (Chancellor) on Jun 11, 2007 at 07:30 UTC
    What makes you think they don't get updated until after the request completes?
      I've checked using a combination of the exact same thing Stonehenge::Throttle does (in fact, that module would have saved me a bunch of development time!), plus the apache server-status directive, command line ps on the server, and a test script that uses lots of cpu....
        It just seems odd to me because there's no real communication that I can see about this between apache and the OS. The OS has no concept of a request, so why would it be waiting for the request to finish?