Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
TanmayB Absent Member.
Absent Member.
108 views

Use of glance

Jump to solution
Hi,

I have to monitor the RSS size of a process in every 2 minutes interval. Please help me how I can do that in such a way that the output will be redirected to a text file because I need to pageout once it reaches max limit.

Ran
0 Likes
1 Solution

Accepted Solutions
Geoff Wild Absent Member.
Absent Member.

Re: Use of glance

Jump to solution
Take a look at the adviser_only option...

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943496

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
2 Replies
Geoff Wild Absent Member.
Absent Member.

Re: Use of glance

Jump to solution
Take a look at the adviser_only option...

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943496

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Highlighted
Contributor.. Bill Hassell Contributor..
Contributor..

Re: Use of glance

Jump to solution
You might check ps to report the core image size of the process:

MYNAME=myproc
MYRAM=$(UNIX95= ps -C $MYNAME -o vsz=)

$MYRAM will be null if the program isn't running, a single number for Kbytes or multiple numbers if multiple copies are running.


Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.