Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find out how much a user is using resources

Status
Not open for further replies.

IThead

MIS
Sep 6, 2002
102
US
Hi,
Recently our server at some point is very low on resources, if the swap free is below 100M, system start having problem.
Is there a utility to check on how much a user is using the resources?
We are on Sun Solaris8.
Thanks
 
You can try the command "w" or "whodo"... Run a man page on each to see if it gives the information you are looking for.
 
bfitzmal,
How can I list memory/cpu useage by users?
 
Not that easily, as far as I know. But a start point would be /usr/ucb/ps aux which lists the % of CPU and the % of Memory that each process is using. The command sorts the processes into order of highest CPU usage, so piping the command through a head is quite useful.

I hope that helps.

Mike
 
Look into prstat that is similar to the top command, it is only available on Solaris 8 and higher though.
 
Maintenance Commands prtdiag(1M)

NAME
prtdiag - display system diagnostic information

SYNOPSIS
/usr/platform/platform-name/sbin/prtdiag [ -v ] [ -l ]

DESCRIPTION
prtdiag displays system configuration and diagnostic infor-
mation on sun4u and sun4d systems.

Carlo Reyes

Technology/Systems - Delivery
Networks and Infrastructure

Chicago Customer Technical Support
 
As coffeysm says use prstat
prstat -a

gives each users resources
NPROC USERNAME SIZE RSS MEMORY TIME CPU
15 oracle 2669M 2003M 13% 1:17:11 0.9%
198 root 696M 348M 1.8% 1:54:33 0.4%
10 user2 390M 340M 2.1% 1:02:01 0.3%
2 user1 6736K 6144K 0.0% 0:00:00 0.0%
2 ucps 2928K 2296K 0.0% 0:00:00 0.0%
 
Thanks guys,
All these are very helpfull....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top