Xymon Mailing List Archive search

TOP & Memory Test

7 messages in this thread

list James Wade · Tue, 23 Jan 2007 14:09:55 -0600 ·
When you look at the cpu test, it shows top output

for the processes taking up the most cpu.

 
Can the same be done for the Memory Test, but

showing top information of the processes taking

up the most memory?

 
Thanks..James
list James Wade · Wed, 24 Jan 2007 16:13:51 -0600 ·
Henrik,

 
Is this possible now or is this additional functionality?

 
Thanks.James
quoted from James Wade

 
From: James Wade [mailto:user-659655b2ea05@xymon.invalid] 
Sent: Tuesday, January 23, 2007 2:10 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] TOP & Memory Test

 
When you look at the cpu test, it shows top output

for the processes taking up the most cpu.

 
Can the same be done for the Memory Test, but

showing top information of the processes taking

up the most memory?

 
Thanks..James
list Greg L Hubbard · Wed, 24 Jan 2007 16:24:18 -0600 ·
I think the process test has both CPU% and memory% columns, but these
are not being checked.  Would be a nice feature, however -- though to be
truly useful we would need some sort of persistence so we could find
runaway apps, etc.  Can't really do that in a five minute slice.
 
GLH
quoted from James Wade


	From: James Wade [mailto:user-659655b2ea05@xymon.invalid] 
	Sent: Wednesday, January 24, 2007 4:14 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: FW: [hobbit] TOP & Memory Test
	
	
	Henrik,

	 
	Is this possible now or is this additional functionality?

	 
	Thanks...James

	 
	From: James Wade [mailto:user-659655b2ea05@xymon.invalid] 
	Sent: Tuesday, January 23, 2007 2:10 PM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] TOP & Memory Test

	 
	When you look at the cpu test, it shows top output

	for the processes taking up the most cpu.

	 
	Can the same be done for the Memory Test, but

	showing top information of the processes taking

	up the most memory?

	 
	Thanks....James
list Henrik Størner · Wed, 24 Jan 2007 23:28:10 +0100 ·
quoted from James Wade
On Tue, Jan 23, 2007 at 02:09:55PM -0600, James Wade wrote:
When you look at the cpu test, it shows top output
for the processes taking up the most cpu.

Can the same be done for the Memory Test, but
showing top information of the processes taking
up the most memory?
I think it's a great idea. It would take some coding in the memory
handling module, but the hobbit clients do report enough data from most
Unix systems that it should be possible to parse out the memory 
utilisation and generate a listing like the "top" display on the cpu 
column.

A quick grep on the hobbitclient-*.sh scripts indicate that we do get
the "%memory" used from AIX, Darwin, FreeBSD, Linux, NetBSD, OpenBSD and
SunOS/Solaris, but not from HP-UX, Irix, OSF/1 and SCO. 

When we have this info, we should also make it possible to trigger
alerts for processes that gobble up too much memory, or too much CPU
time. So I would probably use this as an opportunity to actually grab
some more info from the "ps" listing than what we do today, and hook up
a couple of new threshold settings for it. I've already had requests for
this type of alerting.

Tracking CPU/Memory utilisation by process in a graph would probably
also be interesting in some cases (eg to see when processes are leaking
memory).


Henrik
list Jason Altrincham Jones · Thu, 25 Jan 2007 09:14:23 -0000 ·
Could it also be possible to alert on zombie processes? Just a thought.
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: 24 January 2007 22:28
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] TOP & Memory Test

On Tue, Jan 23, 2007 at 02:09:55PM -0600, James Wade wrote:
When you look at the cpu test, it shows top output
for the processes taking up the most cpu.

Can the same be done for the Memory Test, but
showing top information of the processes taking
up the most memory?
I think it's a great idea. It would take some coding in the memory
handling module, but the hobbit clients do report enough data from most
Unix systems that it should be possible to parse out the memory 
utilisation and generate a listing like the "top" display on the cpu 
column.

A quick grep on the hobbitclient-*.sh scripts indicate that we do get
the "%memory" used from AIX, Darwin, FreeBSD, Linux, NetBSD, OpenBSD and
SunOS/Solaris, but not from HP-UX, Irix, OSF/1 and SCO. 

When we have this info, we should also make it possible to trigger
alerts for processes that gobble up too much memory, or too much CPU
time. So I would probably use this as an opportunity to actually grab
some more info from the "ps" listing than what we do today, and hook up
a couple of new threshold settings for it. I've already had requests for
this type of alerting.

Tracking CPU/Memory utilisation by process in a graph would probably
also be interesting in some cases (eg to see when processes are leaking
memory).


Henrik
list Asif Iqbal · Thu, 25 Jan 2007 11:35:14 -0500 ·
quoted from Jason Altrincham Jones
On 1/24/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Tue, Jan 23, 2007 at 02:09:55PM -0600, James Wade wrote:
When you look at the cpu test, it shows top output
for the processes taking up the most cpu.

Can the same be done for the Memory Test, but
showing top information of the processes taking
up the most memory?
I think it's a great idea. It would take some coding in the memory
handling module, but the hobbit clients do report enough data from most
Unix systems that it should be possible to parse out the memory
utilisation and generate a listing like the "top" display on the cpu
column.

A quick grep on the hobbitclient-*.sh scripts indicate that we do get
the "%memory" used from AIX, Darwin, FreeBSD, Linux, NetBSD, OpenBSD and
SunOS/Solaris, but not from HP-UX, Irix, OSF/1 and SCO.

When we have this info, we should also make it possible to trigger
alerts for processes that gobble up too much memory, or too much CPU
time. So I would probably use this as an opportunity to actually grab
some more info from the "ps" listing than what we do today, and hook up
a couple of new threshold settings for it. I've already had requests for
this type of alerting.

Tracking CPU/Memory utilisation by process in a graph would probably
also be interesting in some cases (eg to see when processes are leaking
memory).
That would be awesome. Almost all our systems are solaris and if there
is a quick patch for solaris 7 to solaris 10 for sparc and x86 I would
implement it right away
Henrik

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list John Glowacki · Fri, 26 Jan 2007 11:17:21 -0500 ·
I'll second that. In the past a developer mentioned running into a race
condition which caused hundreds of zombies. It would be great to have a
zombie threshold to catch that before it is out of control.
quoted from Jason Altrincham Jones

Jones, Jason (Altrincham) wrote:
Could it also be possible to alert on zombie processes? Just a thought.