#!/bin/sh
#
# Warn if a user consumes too much memory (RSS)
# ARG 1: limit (MB)
#
set -f
export PATH
PATH=/bin:/usr/bin:/usr/sbin:/sbin
limit=${1:-5700}
check=`ps -e -o uid= -o rss= | awk '
BEGIN {limit='$limit'*1024}
{m[$1]+=$2}
END {for (i in m) if (m[i]>max) {max=m[i]; uid=i} if (max>limit) print "uid="uid,"max="int(max/1024)}
'`
if [ -z "$check" ]
then
echo "OK: all users below $limit MB resident memory"
exit 0
else
eval $check
user=`getent passwd $uid | cut -f1 -d:`
echo "WARNING: user $user ($uid) uses $max MB resident memory"
exit 1
fi
This User Gave Thanks to MadeInGermany For This Post:
All,
The (fre) coloumn of the (vmstat) command, does it report the size of the free list including the swap space or it only report on the RAM (physical memory).
BR, (1 Reply)
Hi All
I have a clarification. I am running a database on CentOS 4.5 final, PostgreSQL version 8.1.9. The question is about memory usage on the system. The memory used statistic has risen consistently over the past few days... by about 2-3% a day. I want to know why this memory is growing.... (1 Reply)
Hi,
Is it possible to obtain physical memory and swap memory available in HP-UX server.
I tried using "top" command but i'm not able to grep the memory part exclusively...
Thanks.... (4 Replies)
Hi friends
i have a query.
we have two p-series machine(p550 & p570) with HACMP 5.3 and AIX 5.3 hosting SAP.
Now i need to now is there a way or a command to check the memory utilization on these machines on daily basis. I have tried vmstat and iostat but still it's not clear.
We have... (3 Replies)
dear all,
kindly i want to check my server memory utilization i used alot of commands but i want to make sure that it is acurate let me explain
i have a server which has 32GB RAM
Total Memory = 33423360 kb
Free Memory = 4172568 kb
Utilized Memory = 29250792 kb
Memory Utilization... (2 Replies)
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
I have parallels container running on Suse. From top command, I am not able to see, what is eating up so big amount of memory.
top - 07:44:24 up 172 days, 18:52, 1 user, load average: 0.01, 0.02, 0.00
Tasks: 44 total, 1 running, 43 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, ... (1 Reply)
Hi,
i am new to linux/RHEL 6.0 and i have two questions.
1) How to get the CPU utilization and Memory Utilization of all Services running currently?
2) How to get the CPU utilization and Memory Utilization of all Applications running currently?
Please help me to find the script.
... (2 Replies)
I have run the utility nmon in aix 6.1, and found memory utilization is 99.9% in physical.
and pressed h key and then t , in that it is not showing single process which is consuming memory resources. please help me how to find out actual memory utilization.
wheather 99% is real memory... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
LEARN ABOUT PLAN9
sysmon
SYSMON(8) System Manager's Manual SYSMON(8)NAME
sysmon, stats - display graphs of system activity
SYNOPSIS
sysmon [ machine [ -option ] ]
stats [ -option ]
DESCRIPTION
Sysmon displays a rolling graph of various statistics collected by the operating system. The statistics may be from a remote machine. A
sample value is taken once per second. The number in the top left corner of the graph gives the peak value for the duration of the graph.
Lines across the graph represent 75%, 50%, and 25% of the peak value. Clicking a mouse button anywhere in the window cycles through the
list of parameters to monitor; an option letter sets the initial choice. The option letters and parameters are:
[m] mem
total pages of active memory. The memory is displayed as a fraction of the machine's total memory.
[e] ether
number of packets sent and received per second.
[w] swap
number of valid pages on the swap device. The swap is displayed as a fraction of the number of swap pages configured by the
machine.
[c] contxt
number of process context switches per second.
[i] intr
number of interrupts per second.
[f] fault
number of memory faults per second.
[t] tlbmiss
number of translation look-aside buffer misses per second.
[p] tlbpurge
number of translation lookaside buffer flushes per second.
[l] load
system load average. The load is computed as a running average of the number of processes ready to run multiplied by 1000 to give
some precision.
The stats program is invoked by sysmon to display the graph.
FILES
/net/*/[0-n]/stats
#c/sysstat
SOURCE
/rc/bin/sysmon
/sys/src/cmd/stats.c
BUGS
Some machines do not have TLB hardware.
SYSMON(8)