1 Apr
2016
1 Apr
'16
11:31 a.m.
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