Operating System - HP-UX
1752778 Members
6064 Online
108789 Solutions
New Discussion юеВ

Re: Need Script to check memory Performance

 
amreek bansal
Frequent Advisor

Need Script to check memory Performance


Hi Guys,

Can someone please assist, I am looking for a simple script for our HP-UX (11.23) server, to simply check memory performance and to warn me if free memory goes below <2gb.


Thanks
Amreek

8 REPLIES 8
Suraj K Sankari
Honored Contributor

Re: Need Script to check memory Performance

hi,
May this will help you.

http://www.hpux.ws/?p=6

Suraj
amreek bansal
Frequent Advisor

Re: Need Script to check memory Performance

Hi, Thanks for the link, I checked it out, its overs all performance. I'm just interested in the monitoring the memory performnce, and havinga check in the cript for if it drops below 2gb.

Thanks
Amreek
Suraj K Sankari
Honored Contributor

Re: Need Script to check memory Performance

Hi,
Which memory you need to check.

1.physical
2.swap
3.all

Suraj
amreek bansal
Frequent Advisor

Re: Need Script to check memory Performance


Hi Suraj,

I just need to check/monitor the physical memory. Not any others.


Thanks
Amreek
Hein van den Heuvel
Honored Contributor

Re: Need Script to check memory Performance

>> to simply check memory performance and to warn me if free memory goes below <2gb.

It is not simple.

You need to take the buffer cache settings and usage into account.

I would argue that the better way of testing 2GB free is to test whether the UBC if free memory + the difference of current UBC usage ( kmeminfo) and the UBC max is less than 2GB.

You see, the UBC is allowed to eat into free memory, but ready to give it back when needed for process memory.

Hein
Roberto Arias
Valued Contributor

Re: Need Script to check memory Performance

please look for kmeminfo binary , is the best tool of hp for this
The man is your friend
amreek bansal
Frequent Advisor

Re: Need Script to check memory Performance

I have found 'swapinfo -tam', from this output, i just need some scripting to check for the memory from this output ? Any good scripters can help ? Thanks
Raj D.
Honored Contributor

Re: Need Script to check memory Performance

Amreek,

You can run the kmeminfo utility in loop and grep the physical memory usage.

For kmeminfo : check out: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1125085


- Put one 'if-then' condition with meminfo output: if free memory less than 2GB , then execute mailx to send alert.


Hth,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "