pgm memory usage

rikona rikona at sonic.net
Fri Nov 5 20:41:39 UTC 2010


Hello C, :-)

Friday, November 5, 2010, 8:01:05 AM, C wrote:

CdA> On Thu, 4 Nov 2010 18:18:52 -0700
CdA> rikona <rikona at sonic.net> wrote:

>> I have about 10 copies of konq open on all the desktops. Three of
>> them are using about 30% of memory. They are all being used to see
>> dir listings - none are on the net. Also have 10 'opera' browsers
>> running, using 50+% of mem, and I'm getting swap issues[~80-90% of
>> swap is used]. Switching pgms is quite slow. 

>> Is there a way to tell
>> which copies, **in the GUI**, are using how much memory, or,
>> alternatively, can I get the PID for a *particular* pgm in the GUI?

CdA> Yes.

CdA> * use 'ps_mem.py' [1] from Pádraig Brady. Pretty nice one, BTW. But it
CdA>   will not tell you which window the programme uses.
CdA> * use 'xprop' [2] to zero in details of the window (including PId).

CdA> So, use xprop, get the PId, and then ps_mem.py

Aha - xprop was the key to getting the PID of the app! I first get the
PID with htop, then snoop on the desktops, with xprop, to find the
window with the memory hog. Then I know what task needs to be
completed so I can close the memory hog.

Xprop was already installed as part of a package of x tools, so I
didn't need to get it.

I have not yet tried ps_mem.py, but I'll check it out. I noticed that
that author has several other interesting scripts too. Nice site...

Thanks very much for the help - that solved the problem.

-- 

 rikona        





More information about the ubuntu-users mailing list