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

Re: Tracking down memory leaks



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 13/10/15 15:26, Marc Shapiro wrote:
> So how do I tell what is using up the memory and not freeing it up?
> Is there a way to free that memory without having to reboot?

ps -eo pid --sort rss | tail -1 | xargs sudo strace -fp

would show what the application with the most ram is doing but you'd
ideally want to filter the trace for certain calls.

for a solution not so advanced / technical:

ps -eo pid,rss,cmd --sort rss | tail

this will show the process with the most reserved memory at the
bottom, along with listing the process name.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJWKALPAAoJEOYwtpHNe8Fmov4H/j/YoEO3Y4M+HsqWes2qKd1I
tRgB5nQS2c6wF+m3+uGUOoSfPQxPjIJnYcz48uP4dJzXPJWzLTDuIB59tZU8DoH0
94O3ruDEqrlxtzMzAFTtV1wCLO6KAGmFl2K/WL5NGoQsJ3ftaJIwC8YYoG88cKBx
st6b03lgTLB//WFyfpAgg2M2lJ87iC9/GhI5r/nOvaE1NCeMyFVBI2RFEDc7UoGz
H28UPlPJBuFMkZKv7wy/3a/tEx0UeT883PhTDe7wSRoPdrTDYsgsA9UtNjz4jeJF
cc5Z4NmwAxoahhXWiOv/uUrCeaSHjKyiPdDCzVO4j7YgeIVNb2NSWMpG5dj05tc=
=yKXL
-----END PGP SIGNATURE-----


Reply to: