Very critical: Memory leak in freeradius-1.1.6

Martin Gadbois martin.gadbois at colubris.com
Fri May 18 23:07:34 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

nikitha george wrote:
> So why is it happening in my case then? I can see all the requests gets
> cleaned up ( log message was put) but still so much memory is consumed
> by radiusd.
> 

Memory usage under Linux is a tricky thing.
It depends if you're looking at RSS (RES in top), which is the actual
RAM used by the process, or virtual memory (VIRT in top) which actually
may map directly to disk and/or to RAM, and/or be shared with another
process!

A typical usage of a process the RES will rise, and then hit a plateau.
Check the memory usage after a day, it should be the same the following
week.

If the RES raise linearly for days until the system trashes, you may
have detected a memory leak.

But to make sure a leak happens, usually tools like Valgrind helps
better than looking at what the kernel reports, as there is a lot more
hidden than what shows.


- --
==============         +---------------------------------------------+
Martin Gadbois         | "Please answer by yes or no.                |
Sr. SW Designer        | Uncooperative user waste precious CPU time" |
Colubris Networks Inc. | -- The Andromeda Strain, M. Crichton, 1969  |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGThWW9Y3/iTTCEDkRAnOMAJ47LwlA9o48V/49KnahEtaaNWf+4QCfXTL1
HAza0Po1crhG3tHzf6OQIcY=
=q2Gp
-----END PGP SIGNATURE-----



More information about the Freeradius-Users mailing list