rlm_perl does not honor start_servers?

Herwin Weststrate herwin at quarantainenet.nl
Fri Apr 1 17:31:20 CEST 2016


On 01-04-16 16:00, Alan DeKok wrote:

> My guess here is that the problem isn't starting up 256 Perl threads,
> the problem is that your Perl code is tens of thousands of lines
> long.  And compiling *that* is taking forever.

There is another problem here: every freeradius thread tries to compile
the perl-code separately and keeps a compiled version in memory. The
more threads you have, the more memory is allocated just for the perl code.

Those embedded languages are great for things that are not too complex.
Otherwise, it might be worth a try to use rlm_rest and use a webserver
that preloads the perl code. We had some good experiences with
AnyEvent::HTTPD in Perl.

-- 
Herwin Weststrate



More information about the Freeradius-Users mailing list