Re: process snapshot



On Dec 23, 2007 10:53 PM, lists user <practicalperl@xxxxxxxxx> wrote:

How to get a process's snapshot data in perl like Apache::Scoreboard
for apache processes?

Probably in much the same way.

What process's data are you trying to obtain? In the case of Apache,
it maintains the so-called scoreboard, which is to say that Apache
actively publishes scoreboard data. If the process you're interested
in doesn't try to make its internal data public, extracting that data
isn't easy, nor reliable. On the other hand, if that program publishes
its internal state in a way analogous to what Apache does, then how to
get what you want should be documented somewhere; find that (or make
it happen, if you've got the program's source) and you'll be most of
the way there.

Good luck with it!

--Tom Phoenix
Stonehenge Perl Training
.



Relevant Pages

  • Re: sbwait state for loaded Apache server
    ... > I'm working with an Apache webserver running 1400 apache processes and ... Most of the apache processes are ... this probably means that you have a client on a slow link ... a couple of which you could safely drop the connection. ...
    (freebsd-performance)
  • Re: FreeBSD 6.2-STABLE && apache 2.2.4 = bad performance. Help!
    ... I suspect your PHP appare leaking memory or otherwise ... That memory profile of your apache is surprising and resembles only a ... >> The fact that your server starts dogging out around 40 processes is ... with a load of 10.18 and 34 apache processes. ...
    (freebsd-questions)
  • Cant stop apache Daemon
    ... I noticed all these weird apache processes running. ... Some processes are owned by root, some by www-data. ...
    (Debian-User)
  • Apache doesnt free RAM
    ... I have a problem with my apache processes. ... They're allocating ~100 MB memory after a client requested a PHP ... After serving those requests Apache should free the allocated ...
    (comp.infosystems.www.servers.unix)
  • Re: virtual memory management
    ... So thanks for the pointer! ... You might also want to stop using mod_php in apache and convert to ... fastcgi setup - this way you'll get all Apache processes to use a much ... Does this mean recompiling Apache? ...
    (freebsd-questions)