From the Top output above i found that the memory usage is about 94%. There are about 45 processes owned by "rtx" user.Am wondering if there is any method i
Last edited by vgersh99; 08-12-2009 at 03:43 PM..
Reason: code tags, PLEASE!
Your server looks pretty healthy. Don't be fooled by the 94% you're seeing there. The way that that is reported isn't truly accurate. Buffers and cache are shown as "used memory" but in fact they are available to the system if needed.
For example, if I look at the server I'm working on right now, using top, I see:
This makes it look like my memory is all used up. (in fact, I'm 2 meg into swap which I don't like. I'll have to look at that.)
But if I look at it using "free":
You can see, from the bolded line, that if you factor out buffers/cache (which you should) I have about 2.5GB of "free" memory. What's most important when looking at top for memory usage (at least in my opinion) is to look at the amount of swap used. Swap should never be used. If it is it's indicative of a problem. Memory leak, underpowered server, etc.
That being said, if you want to know usage for a user you should use 'ps' and then extract the data from there. You can grep by the user name and then use awk to extract the field you want and perform calculations on it.
Hi,
Below is the code snippet I use on Linux (Centos) to retrieve the Process Name, PID and memory consumed on Linux (Centos) host:-
top -b -n 1 | awk -v date="$tdydate" -v ip="$ip" 'NR>7 {print date","ip","$12,","$1,","$10}'
Any idea how the same can be retrieved on an AIX host? This... (1 Reply)
Hi, looking to upgrade memory on a pair of T5220's from 32GB to 64GB. Cannot determine current DIMM size and slots used. i.e. not sure if Qty 16 x 2GB or Qty 8 x 4GB. If there are no empty slots, i need to go with higher density DIMMs and retire exsisting the 2GB prtdiag follows.
#... (3 Replies)
Hi,
I have a strange issue where the total memory on the server is showing low.
At the moment 8 GB of memory is installed and only 3 GB is showing on the shell prompt. I am using the commands free -m and vmstat to check the memory. Please help me out in identifying the issue.
With regards... (3 Replies)
Hi,
When running top on linux redhat machine , i see that i have 16gb of memory
in my machine and about 14.5gb of memory are in use:
Mem: 16395780k total, 14970960k used, 1424820k free, 370264k buffers
Swap: 4192956k total, 25824k used, 4167132k free, 12029400k cached
How can i... (3 Replies)
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
I'm writing a shell script to display as much useful information on physical and virtual memory availability and usage as possible. I need a CLI tool to print these numbers for me.
The utilities that I know to give out some statistics are the following:
free
top
vmstat
sysctl
In Linux... (1 Reply)
Hello all
im using the ps -ef "args vsz" | some.exe
but the result is in kb , is there some kind of way or flag ( didnt found in the ps man )
to convert me this data to GB or MG in human readable format ?
Thanks (1 Reply)
Using HP-UX v11
Need to monitor cpu and memory usage, total for system and separately for each user in command-line mode.
Found out next ways to monitor total cpu usage under hp-ux:
1) vmstat, also shows free memory
2) sar -M
ps -eo user,pcpu - does not work, means 'user-defined format'... (4 Replies)
I need to put a program together to determine the total, available memory and total and available swap on unix machines. I have been searching for weeks and I seem to run into dead ends. Every unix platform I look at has a different way to determine memory info.
Any sugggestions or new... (4 Replies)