Memory leak or misunderstanding - rlm_perl?
Alexander Clouter
alex at digriz.org.uk
Thu Oct 8 09:31:11 CEST 2009
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 :)
Cheers
[1] http://www.perlmonks.org/?node_id=115098
--
Alexander Clouter
.sigmonster says: Beware of a tall black man with one blond shoe.
More information about the Freeradius-Users
mailing list