Gradual increase in memory usage

Бен Томпсон b.thompson at latera.ru
Wed Jan 15 16:12:39 CET 2014


Alan

Many thanks for the info.

Ben


On 15 January 2014 18:25, Alan DeKok <aland at deployingradius.com> wrote:

> Бен Томпсон wrote:
> > I have an instance of FreeRADIUS which is gradually consuming memory.
>
>   You have a version of Perl which is gradually consuming memory. :(
> ...
> > ==00:00:00:55.542 15239== 131,904 bytes in 180 blocks are definitely
> > lost in loss record 545 of 547
> > ==00:00:00:55.542 15239==    at 0x4C244E8: malloc
> (vg_replace_malloc.c:236)
> > ==00:00:00:55.542 15239==    by 0x76F6C45: Perl_safesysmalloc (in
> ...
> > ==00:00:00:55.542 15239== 146,544 bytes in 2,246 blocks are definitely
> > lost in loss record 546 of 547
> > ==00:00:00:55.542 15239==    at 0x4C244E8: malloc
> (vg_replace_malloc.c:236)
> > ==00:00:00:55.542 15239==    by 0x76F6C45: Perl_safesysmalloc (in
> ...
> > ==00:00:00:55.542 15239== 277,664 bytes in 3,218 blocks are definitely
> > lost in loss record 547 of 547
> > ==00:00:00:55.542 15239==    at 0x4C244E8: malloc
> (vg_replace_malloc.c:236)
> > ==00:00:00:55.542 15239==    by 0x76F6C45: Perl_safesysmalloc (in
> ...
>
> > I would be grateful if anyone could take a quick glance at this output
> > and let me know if it shows anything untoward.
>
>   Perl has a garbage collector, but it is notoriously bad.  Your Perl
> script is using lots of memory, and leaking.  Since the Perl interpretor
> is running inside of FreeRADIUS, it looks like FreeRADIUS may be
> leaking.  It's not.
>
>   Fix the Perl script so that it doesn't leak memory.  Use fewer
> variables, don't automatically create new variables, ensure that you
> delete every "complex" object you can.
>
>   I haven't done Perl in a while, so that's about all the advice I can
> offer.
>
>   Alan DeKok.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html




-- 
Бен Томпсон,
инженер отдела внедрения и техподдержки,
компания "Латера" | www.latera.ru

тел.: +7 (499) 940-95-05, доб. 221
E-mail: b.thompson at latera.ru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140115/cf2b554c/attachment.html>


More information about the Freeradius-Users mailing list