06-09-2008
Script using prstat
Hi,
I need a script which uses prstat command to check the performance . if a load averages crosses some threshold means I should receive the mail. this script should always run in back ground.
Kindly help me on this.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
The last line of prstat shows load average.
I am unable to figure out what actually it is.
I have read the man pages and also googled, all for no use.
Can somebody help me, as to what should be the avg. load of the system for best performance and how is this load of prstat calculated. (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
2. Shell Programming and Scripting
Hello,
How can I do to use prstat command in a korn-shell ?
Thanks a lot.
Rgds. (4 Replies)
Discussion started by: madmat
4 Replies
3. Shell Programming and Scripting
How to stop the Prstat using shell script ?
because after i run the below script the thing seems to be always in loop and cannot get out till i ctrl + c, is there anything that i can add in the script to make it terminate ?
<code>
#!/bin/sh
prstat -Tc -u testing > testing.txt
</code>
... (19 Replies)
Discussion started by: filthymonk
19 Replies
4. Solaris
Hi All,
But the prstat logs of my system shows:-
NPROC USERNAME SWAP RSS MEMORY TIME CPU
77 oracle 17G 10G 65% 4:24:47 0.8%
Total: 486 processes, 3850 lwps, load averages: 3.77, 4.45, 4.94
What does the MEMORY denotes?
Is it the %memory used from RAM?
Or is the %memory used by... (10 Replies)
Discussion started by: dipashre
10 Replies
5. Solaris
Good Evening everyone,
I am confused about prstat O/P as it shows memory values which are different from actual value.Below is the O/P of prstat command and swap commands.
NPROC USERNAME SIZE RSS MEMORY TIME CPU
48 root 2113M 1590M 1.2% 45:09.39 32%
31 daemon ... (7 Replies)
Discussion started by: vvpotugunta
7 Replies
6. Shell Programming and Scripting
Hi,
Is there any way by which the unit of size and rss will be only GB while I am running the prstat command? (2 Replies)
Discussion started by: King Nothing
2 Replies
7. Shell Programming and Scripting
hi all,
am writing a ksh script on solaris 9 to get the number of threads taken by a process. am using the prstat -p command to do this.
output i get is :
:"/export/home/user" > prstat -p 25528 | cut -f2 -d/
NLWP
203
Total: 1 processes, 203 lwps, load averages: 2.58, 3.24, 3.62... (2 Replies)
Discussion started by: cesarNZ
2 Replies
8. Solaris
hi all,
was trying to figure out how busy my app was by looking at the performance of the app server. did a 'prstat -s rss' command to find the app servers using most memory.
Found a command 'prstat -m' which is meant to show more details on each pid but the output of this command... (1 Reply)
Discussion started by: cesarNZ
1 Replies
9. Shell Programming and Scripting
Hi,
I know how to figure out the list of PID from my application name :
ptree `pgrep MyApp` | awk '{print $1}'
But I dont know how to pipe it for prstat -p <pidlist>
ptree `pgrep MyApp` | awk '{print $1}' | prstat -p ???
I would like to monitor every ptree PID from my application. ... (4 Replies)
Discussion started by: RickTrader
4 Replies
10. How to Post in the The UNIX and Linux Forums
Hello All,
I have a shell script where with the lines below:
echo "${v_sd_dateTime},${RUN_QUEUE_SIZE},${LOAD_AVERAGE},${v_sd_load_list},${v_sd_thread_count_list}" >> ${v_sd_file}
Format of the output :
01/05/2005 08:00:00, RUN_QUEUE_SIZE, LOAD_AVG, CPU_PROD1, CPU_PROD2, THREADS_PROD1,... (1 Reply)
Discussion started by: Supriya_84
1 Replies