monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monit pid reporting


From: Christian Hopp
Subject: Re: Monit pid reporting
Date: Fri, 28 Feb 2003 20:06:30 +0100 (CET)

On Fri, 28 Feb 2003, Son Nguyen - ad-rotator.com wrote:

Moin!

> I was wondering if the PID used to identify the process is the
> parent process?

It is the PID which is given in the pidfile.  So it depends on the
program which writes it.

> If so, then what about the resources being used by
> its children/threads?

Data gathering from child processes is on the todo list for the next
release.  And I am coding on it already.

> Since I was having problem with monit could
> not detect the resource usage of mysqld:

Did it work for other processes?

> "monit status" reported: - Process 'mysqld' is running with pid
> [1436] Uptime: 9d 17h 36m CPU: 0.0% Memory: 1.2% [6476kB]

The process 1436 is the process with is found in the pidfile.
Actually, the cpu percentage is the sum of the process and it's
children (the only child information you can get directly).

What information does top have about process 1436?

> "top" reported:
> 1433 mysql     14   0 75008 6476  3152 R    94.1  1.2 243:14 mysqld

A child with a pid smaller than its parent???  Strange.  Can you check
the child<->parent dependencies... e.g. with "pstree -p".

> which has PID[1433] and uses CPU: 94.1% and Memory: 1.2% (which is shared)

I don't really know what top shows at "CPU".  Is it the total of all
children and the process itself?

By the way it takes at least on two cycles it monit shows a cpu load
larger then 0.0%.  It is measured between two cycles.

Christian

-- 
Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf.   fax: +49-5323-72-3197
                             pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]