How to check Memory Utilization by each process

Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Operating Systems Linux SuSE How to check Memory Utilization by each process
# 1  
How to check Memory Utilization by each process

If following is the usage of cat /proc/meminfo

MemTotal: 4051304 kB
MemFree: 28544 kB
Buffers: 216848 kB
Cached: 3398628 kB
SwapCached: 0 kB
Active: 455460 kB
Inactive: 3291612 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 4051304 kB
LowFree: 28544 kB
SwapTotal: 4200988 kB
SwapFree: 4195304 kB
Dirty: 188 kB
Writeback: 0 kB
AnonPages: 130000 kB
Mapped: 47360 kB
Slab: 249036 kB
CommitLimit: 6226640 kB
Committed_AS: 1400364 kB
PageTables: 4512 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 9236 kB
VmallocChunk: 34359727099 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB

Then what means "Inactive: 3291612 kB" processes. Here my memory usage is almost 100% but how can i find which perticular processes are consuming all each percent of this 100 % .

Also in this situation my SWAP usage is 0%.

Please help.

Bryan
# 2  
there are many commands to see the process status
top
topas
vmstat etc..etc..
# 3  
True, But how can i get list each of process which is consuming each percentage of total memory.

Top and vmstat shows very compact output...

Bryan
# 4  
you can use dimstat software for this. Its free software . I use this for my performance test activity and its really a good monitoring tool.

Dimitri (dim) Tools HOMEPAGE
# 5  
Quote:
Originally Posted by amitranjansahu
you can use dimstat software for this. Its free software . I use this for my performance test activity and its really a good monitoring tool.

Dimitri (dim) Tools HOMEPAGE
Dimitri has not been updated in one year.

I advise caution when considering software that is not actively maintained.
# 6  
If you use top in batch mode you get a list of all processes:
top -b -n 1 > list_of_processes

Before that, if you want the output sorted by memory usage you can do the following:
top
M (this sorts the output on the screen by memory usage)
W (this writes the sort settings to a configuration file ~/.toprc; this settings are used when you then start top in batch mode as described above)
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #355
Difficulty: Medium
BWK awk, also known as nawk, refers to the awk version by Ken Thompson.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

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)
Discussion started by: nossam
2 Replies

2. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

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)
Discussion started by: edydsuranta
4 Replies

3. Emergency UNIX and Linux Support

CPU and memory utilization of a process, by process name

Can someone please help me with a script that will help in identifying the CPU & memory usage by a process name, rather than a process id.This is to primarily analyze the consumption of resources, for performance tweaking. G (4 Replies)
Discussion started by: ggayathri
4 Replies

4. HP-UX

Get CPU,Memory utilization by process id

Hi , We need to get the CPU% and Memory utilization of process by process id. Is there any way to do get them ? I tried few commands like top -p <PID> , but am getting error "Quitting top: pset <PID> doesn't exist" also i tried with ps -eo option but am getting error "ps: illegal option --... (5 Replies)
Discussion started by: suresh_g
5 Replies

5. UNIX for Dummies Questions & Answers

Get CPU,Memory utilization by process id

Hi , We need to get the CPU% and Memory utilization of process by process id. Is there any way to do get them ? I tried few commands like top -p <PID> , but am getting error "Quitting top: pset <PID> doesn't exist" also i tried with ps -eo option but am getting error "ps: illegal option --... (1 Reply)
Discussion started by: suresh_g
1 Replies

6. Shell Programming and Scripting

script to check high cpu utilization for java process

Hello Team, I need help in preparing script to check for high cpu utilisation for java process. I have many java process on my system which consumes high cpu so i have to monitor it using script. ---------- Post updated 12-10-10 at 02:21 AM ---------- Previous update was 12-09-10 at... (1 Reply)
Discussion started by: coolguyamy
1 Replies

7. Emergency UNIX and Linux Support

How to monitor a process memory utilization?

hi frnds, I want to monitor a particular process very closly on how much memory it is taking. i tried with TOP and PRSTAT commands that is not giving what exactly i need. In my application, there is a memory leak happening, i want to know when it is occuering, means which transcation is... (9 Replies)
Discussion started by: vij_krr
9 Replies

8. Shell Programming and Scripting

Unix Script to find and kill a process with high memory utilization

Hi Unix Gurus i am somewhat new to unix scripting so need your help to create a script as below. # This script would find the process consuming memory beyond a certain #limit. if the meemory consumption is more than 100% for a period of 1 # minute for the specific process. the script would... (0 Replies)
Discussion started by: robinforlinux
0 Replies

9. UNIX for Dummies Questions & Answers

Getting CPU utilization and memory for a process

I am trying to get cpu util and memory occupied for a process. I use these (I am showing output also): using top ---------- $ top p 25272 d 5 top - 01:52:17 up 2 days, 21:28, 2 users, load average: 0.02, 0.05, 0.06 Tasks: 1 total, 0 running, 1 sleeping, 0 stopped, 0 zombie... (5 Replies)
Discussion started by: radiatejava
5 Replies

10. Shell Programming and Scripting

Memory and CPU utilization process

Hi, I need to check which process in linux is taking high memory and which process is taking high cpu usage. Regards, Bash (4 Replies)
Discussion started by: learnbash
4 Replies

Featured Tech Videos