Memory leak or misunderstanding - rlm_perl?
Mihail Vasiliev
mick at linkintel.ru
Thu Oct 8 11:39:44 CEST 2009
Alexander Clouter
> Alan DeKok <aland at deployingradius.com> wrote:
>>>
>>> I am running freeradius-2.1.6 with all AAA logick hidden in perl
>>> module,
>>> thus using rlm_perl.
>>>
>>> Having about 1000-10000 client connections per day radiusd consumes
>>> about
>>> 1Gb of memory per day (I restart it daily).
>>>
>>> The only (possibly) important thing - I am using several external
>>> modules
>>> in my main perl module.
>>
>> Perl's garbage collector isn't perfect. It may be that you really do
>> need to restart to get memory cleaned up.
>>
> At the end of the request handling function, it might be work getting
> your script to look at how much memory it has consumed[1] and then
> commit Seppuku; hopefully FreeRADIUS is primed to notice the suicide and
> restart the perl module from scratch.
>
> A trivial fix, but if you have long running state information you might
> need to do some reworking to move some data into a DB file or something
> (*not* an SQL database...please :)
Well, I actualy already do it - I store the actual data in memcached,
running as a stand-alone process. Well, thank you anyway.
>
> Cheers
>
> [1] http://www.perlmonks.org/?node_id=115098
>
> --
> Alexander Clouter
> .sigmonster says: Beware of a tall black man with one blond shoe.
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list