Sponsored Content
Full Discussion: load monitor script
Top Forums UNIX for Advanced & Expert Users load monitor script Post 302103312 by Tornado on Wednesday 17th of January 2007 05:01:12 PM
Old 01-17-2007
Or for a bit more info try prstat
Code:
# prstat 1 1 | grep average
Total: 96 processes, 194 lwps, load averages: 0.15, 0.16, 0.17
#

OR For even more info instead of just the average line....
Code:
# prstat -ac 1 1
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
  4424 named      60M   59M sleep   59    0  16:36.23 4.6% named/7
  8331 root     6096K 3264K sleep   59    0   0:11.21 0.5% syslogd/21
   388 root       73M   72M sleep   59    0  10:14.11 0.1% rpc.nisd/4
   378 root     2984K 2056K sleep   59    0   1:07.15 0.1% rpcbind/1
   813 root     8216K 7632K sleep   59    0   0:00.00 0.0% mibiisa/12
  3179 root     1256K  912K cpu3    49    0   0:00.00 0.0% prstat/1
   642 root     2240K 1280K sleep  100    -   0:31.21 0.0% xntpd/1
   381 root     2976K 1376K sleep   59    0   0:00.00 0.0% keyserv/7
   428 root     4928K 3384K sleep   59    0   0:00.46 0.0% automountd/5
   556 root     1760K  896K sleep   59    0   0:19.45 0.0% prngd/1
   656 root     2536K 1600K sleep   59    0   0:14.06 0.0% nmbd/1
   419 root     1928K 1304K sleep   59    0   0:00.00 0.0% lockd/1
   427 daemon   3392K 2256K sleep   59    0   0:00.00 0.0% statd/5
  1612 sn00     1528K 1104K sleep   59    0   0:00.00 0.0% csh/1
   390 root     2480K 1816K sleep   59    0   0:00.00 0.0% rpc.nispasswdd/1
 NPROC USERNAME  SIZE   RSS MEMORY      TIME  CPU
     1 named      60M   59M   3.0%  16:36.23 4.6%
    64 root      277M  193M   9.8%  13:09.00 0.8%
     7 www        20M   13M   0.7%   0:00.00 0.0%
     1 daemon   3392K 2256K   0.1%   0:00.00 0.0%
    14 sn00       38M   20M   1.0%   0:00.34 0.0%
Total: 95 processes, 193 lwps, load averages: 0.09, 0.12, 0.15
#

Tornado
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

2. Shell Programming and Scripting

System Health - Cpu, Load, IO Monitor

hello there, can someone please tell me the commands that makes sense, from a production point of view, to be used to make sure CPU, LOAD or IO usages on a Linux or Solaris server isn't too high? I'm aware of vmstat, iostat, sar. But i seriously need real world advice as to what fields in... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Shell Programming and Scripting

Monitor the CPU load for each process and total

Hi guys, I have to set up a script which monitors the amount of AVG CPU load per each process and also the total load for a sum of processes. The processes have the same name, I can only differentiate by port number they listen to, as follows : 28171 root 20 0 1089m 21m 3608 S 103... (1 Reply)
Discussion started by: liviusbr
1 Replies

4. UNIX for Dummies Questions & Answers

VPS has load 200, httpd load no activity, netstat nothing

Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections. tail -f /var/log/httpd/access_log shows no activity /var/log/messages ;... (1 Reply)
Discussion started by: postcd
1 Replies

5. Infrastructure Monitoring

Searching for Saas Monitor service which monitor my servers which are sitting in different providers

Sorry if this is the wrong forum Searching for Saas Monitor service which monitor my servers which are sitting in different providers . This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard. The info I need is CPU / RAM / my servers status (... (1 Reply)
Discussion started by: umen
1 Replies

6. UNIX for Advanced & Expert Users

Script monitor website wth default tomcat script

Hi all, on our application server we have the following script that monitor the status of the website, my problem here is that i have edite the retries from 3 to 5, and the timewait to 120 second, so the script should check 5 times every 2 minutes, and if the fifth check fails it must restart... (0 Replies)
Discussion started by: charli1
0 Replies
TLOAD(1)							Linux User's Manual							  TLOAD(1)

NAME
tload - graphic representation of system load average SYNOPSIS
tload [-V] [-s scale] [ -d delay ] [tty] DESCRIPTION
tload prints a graph of the current system load average to the specified tty (or the tty of the tload process if none is specified). Options The -s scale option allows a vertical scale to be specified for the display (in characters between graph ticks); thus, a smaller value rep- resents a larger scale, and vice versa. The -d delay sets the delay between graph updates in seconds. FILES
/proc/loadavg load average information SEE ALSO
ps(1), top(1), uptime(1), w(1) BUGS
The -d delay option sets the time argument for an alarm(2); if -d 0 is specified, the alarm is set to 0, which will never send the SIGALRM and update the display. AUTHORS
Branko Lankester, David Engel <david@ods.com>, and Michael K. Johnson <johnsonm@redhat.com>. Please send bug reports to <albert@users.sf.net> Cohesive Systems 20 Mar 1993 TLOAD(1)
All times are GMT -4. The time now is 01:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy