memory leak

Steve Lamb grey at dmiyu.org
Sun Apr 26 12:40:58 UTC 2009


On Sunday 26 April 2009 04:09:52 am Alan Chandler wrote:
> How can I find what is using swap, to get a clue as to what it is.

    In a command window:

ps auwx | sort --key=6 -r -n | head

    That will give you output similar to this:
{grey at igbuntu:~} ps auwx | sort --key=6 -r -n| head
grey      6937  1.3 23.8 311972 121752 ?       SNl  Apr25   6:06 kmail
grey      3825 25.7 21.4 393116 109176 ?       Sl   Apr25 143:57 
/usr/lib/firefox-3.0.9/firefox
root      3012  4.7 10.3  82836 52524 tty7     Ss+  Apr25  27:00 /usr/bin/X -
br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-85Sm0K
grey     21278  1.1  5.5 134284 28452 ?        Sl   05:35   0:02 
/usr/bin/konsole
grey     11899  0.6  5.1 326912 26088 ?        Sl   00:24   2:00 plasma --
nocrashhandler
grey      6420  0.1  3.7  61620 19060 ?        S    Apr25   0:33 kdeinit4: 
kio_imap4 [kdeinit] imap local:/tmp/ksocket-grey/klauncherMT3630.slave-socket 
local:/tmp/ksocket-grey/kmailZK6417.slave-socket
grey      3741  0.0  3.1 114824 16264 ?        SN   Apr25   0:07 python 
/usr/bin/update-notifier-kde
grey      3641  0.1  2.2  68880 11320 ?        Sl   Apr25   0:42 kwin -session 
10d7dbd775000121514905500000056860000_1240668019_624183
grey      3632  0.0  2.1 146068 11024 ?        S    Apr25   0:06 kded4
grey      3738  0.0  1.9  98384  9736 ?        S    Apr25   0:03 python 
/usr/bin/printer-applet

    The 6th column being the relative size of the application.  Chances are if 
you have something exceptionally chunky forcing things to swap it'll head the 
list.

-- 
         Steve C. Lamb         | But who can decide what they dream
       PGP Key: 1FC01004       |      and dream I do
-------------------------------+---------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090426/db8ea5a1/attachment.pgp>


More information about the ubuntu-users mailing list