05-07-2008
What do you mean with Max, Min and Avg? These are values that implies a continuous monitoring of system resources in a certain range of time.
Once collected all the info (maybe in a logfile) you could parse the output (awk?) and produce the stats you need.
For cpu and memory usage you can have a look at vmstat command, for disks try iostat. However, maybe there's a better utility which I don't know that can do it all
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Does anyone know what the best commands in the UNIX command line are for obtaining this info:
current CPU usage
memory usage
virtual memory usage
preferably with date and time parameters too?
thanks
ocelot (4 Replies)
Discussion started by: ocelot
4 Replies
2. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
3. UNIX for Dummies Questions & Answers
hi guys
I just want to know how to get the cpu/memory utilization of a running script?
Well i know that I can use the sar command but it shows the whole system's statistics.
Is it possible to get the stats of a single scirpt or a single running service? (6 Replies)
Discussion started by: khestoi
6 Replies
4. UNIX for Dummies Questions & Answers
Hello all,
Below what I saw on my solaris 10 box :
$ prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU
PROCESS/NLWP
683 root 4082M 91M run 10 0 41:45:39 96% snmptrapd/1
syslog gives a lot of :
snmptrapd: illegal
data attempted to be added to table nlmLogVariableTable... (0 Replies)
Discussion started by: Gino_75
0 Replies
5. UNIX for Advanced & Expert Users
Hello,
I'm seeing this problem with vmstat, where the first line of output always has the same CPU statistics. For example:
neked@nekedmachine:~$ date && vmstat
Fri Jul 24 06:57:08 EDT 2009
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
r b swpd ... (0 Replies)
Discussion started by: neked
0 Replies
6. Solaris
Is there a command or file I can look at that tells me how much real memory a machine has? A little background. In my shop we run a bunch of java programs, sometimes some of these jobs have config definitions that call for 2G. I would like to know how many I can run before I exhaust rescources. Any... (12 Replies)
Discussion started by: Harleyrci
12 Replies
7. Shell Programming and Scripting
Hi all
can any one help me to script monitoring
CPU load avg when reaches threshold value
and disk usage if it exceeds some %
tried using awk but when df -h out put is in two different lines awk doesnt work for the particular output in two different line ( output for df -h is in two... (7 Replies)
Discussion started by: robo
7 Replies
8. Shell Programming and Scripting
what is the best way to get the memory and cpu usage of a process on any system?
this is relatively simple. however, i'm looking for a unified method that would work on linux, sunos, hpux, aix.
ps -ef | egrep myprocess | awk '{print $4}' ---> there could be several instances of 'myprocess'... (3 Replies)
Discussion started by: SkySmart
3 Replies
9. UNIX for Advanced & Expert Users
we all know the time shell command
Is there a way to test disk i/o of a process in a similar fashion?
I am trying different methods to limit disk writes in a 24/7 daemon process and would like to
measure. I know pidstat does it but only to a running process, i want to do one shot test... (7 Replies)
Discussion started by: bigearsbilly
7 Replies
10. UNIX Desktop Questions & Answers
Hi,
We have around 1000 server (Red Hat + Suse + Parallels + Solaris-9/10/11). Every month, we generate a report for all servers for CPU and Memory utilization in 'percentage used'. This report is generated from HP Openview and frequency is every file minutes. In HP OpenView, we are picking 20... (0 Replies)
Discussion started by: solaris_1977
0 Replies
LEARN ABOUT DEBIAN
passenger-memory-stats
passenger-memory-stats(8) Administration Commands passenger-memory-stats(8)
NAME
passenger-memory-stats - reports a snapshot of the Apache and Phusion Passenger memory statistcs
SYNOPSIS
passenger-memory-stats
DESCRIPTION
passenger-memory-stats allows you to easily analyze the real memory usage of Phusion Passenger and Apache.
Process inspection tools such as ps and top are useful, but they rarely show the correct memory usage. The real memory usage is usually
lower than what ps and top report.
There are many technical reasons why this is so, but an explanation is beyond the scope of this page. We refer the interested reader to
operating systems literature about virtual memory and copy-on-write.
When you run this tool the Private or private dirty RSS field shows the real memory usage of processes.
ENVIRONMENT VARIABLES
HTTPD The full filename to the Apache executable. By default, Passenger will attempt to autodetect the Apache executable. If autodetection
fails for whatever reason, then Apache processes will not be shown in the memory statistics. In that case, you may manually specify
the location to the Apache executable using this environment variable.
SEE ALSO
passenger-status(8), ps(1), top(1),
User guide at http://www.modrails.com/documentation.html
AUTHOR
Phusion Passenger is written by Phusion (http://www.phusion.nl)
"Phusion" and "Phusion Passenger" are trademarks of Hongli Lai & Ninh Bui.
This manual page was written by Neil Wilson <neil@brightbox.co.uk> for the Ubuntu project (but may be used by others).
Phusion Passenger 2.0 passenger-memory-stats(8)