Re: cli to track app utilizing CPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you both for your help.

I'd like to summarize the CLIs that I have used to
check the offending application:

1.  top

- press <M> [capital M]  - this sorts the
summarized memory util version in by memory usage.

2.  ps

type: ps -eo pid,vsz,rss,args --sort rss | more

where:
pid - process ID
vsz - virtual memory usage
rss - resident set size (physical RAM)
args - command args to display the processes

I am sorting it by physical RAM output.

....

free and `cat /proc/meminfo` - provides me a summary snapshot
of free and used memory related statistics; for my purpose
the ps CLI above allowed me to see in detail the offending application.

thanks again.

- a.


> On Friday 27 February 2004 04:07 pm, a s p a s i a wrote:
>> hello,
>>
>> i have 12gig of RAM; checking top i noticed
>> that i only have aroun 500mb fee memory ...
>> though it shows percentage of memory utilized
>> by an app ... is there a CLI that I can use to
>> exactly trace which application or process is
>> using most of my memory, and exactly how much?
>
> Usually the kernel cache the memory so that it can access it faster. If I
> am
> not mistaken, "free" and "top" shows the memory left that are not cached.
> The
> cached memory is not necessarily used by the application (yet).
>
> If you use "free", the second line that says "-/+ buffers/cache:" shows
> you
> how much memory is actually use by apps, and how much is cached.
>
> Someone please correct me if I'm wrong.
>
> HTH.
>
> RDB
> --
> Reuben D. Budiardja
> Department of Physics and Astronomy
> The University of Tennessee, Knoxville, TN
> ---------------------------------------------------------
> "To be a nemesis, you have to actively try to destroy
> something, don't you? Really, I'm not out to destroy
> Microsoft. That will just be a completely unintentional
> side effect."
>                  - Linus Torvalds -
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux