pgm memory usage

Knight knightotp at gmail.com
Fri Nov 5 10:08:07 UTC 2010


On Fri, 2010-11-05 at 00:01 -0700, rikona wrote:

<snipped>
> 
> From htop, I can already see physical ram is full, and swap is 80-90%
> full.
> 
<snipped>
> -- 
> 
>  rikona        

While you're already looking at htop, press the key: t (tango)

Then you'll get to see the process tree. That makes it easier to find
the process which uses a lot of RAM/memory. To determine which is which
you can look at the command. It's possible to scroll to the right with
the arrows-keys.

Another GUI-program you could use is "System Monitor". (System >>
Administration) Then, while on the process tab, you can select under
"view" extra properties to look at. ie. Dependencies (pstree like),
memory maps, open files etc.. Worth a shot I think.

Another approach is to use "watch" on the command "free" like:

watch free
OR
watch free -mt
(easier to read)

Then start working and opening your programs and keep an eye on this
terminal. Then when your RAM suddenly gets filled up it's obvious that a
program runs away with your RAM, stop it and you found your
basterd-program.(it's possible that there's a memory leak somewhere)

BTW. How many RAM/swap do you have installed/configured?

-- 
Knight Of The Post


Linux Pro or Pro Linux?!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101105/384e4f93/attachment.pgp>


More information about the ubuntu-users mailing list