<div dir="ltr"><div><div><div><div><div>Hi Alan,<br><br>thanks for the response.<br><br></div>I thought that running through perl would be better as the interpreter was loaded into memory.<br><br></div>So what would be better, a Perl script or using unlang?<br>
<br></div>Basically the script does a select query on the DB, then all the logic and does some inserts into the DB.<br><br></div>What do you recommend perl or unlang?<br><br></div>Thanks<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Jan 11, 2014 at 7:24 PM, Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">Tyller D wrote:<br>
> Some info regarding the install:<br>
><br>
> Version:<br>
> radiusd -v<br>
> radiusd: FreeRADIUS Version 2.1.12, for host x86_64-redhat-linux-gnu,<br>
<br>
</div> Well, upgrading may help.<br>
<div class="im"><br>
> Some notes on my setup:<br>
> Everything runs through mod_perl. So my perl script handles the DB<br>
> connection, add and removes records from the DB and so forth. Its called<br>
> for each and every request.<br>
<br>
</div> That's really not a good idea. It slows the server down a *lot*.<br>
<div class="im"><br>
> I checked the logs when the server was down and the errors I saw were<br>
><br>
> Sat Jan 11 16:26:08 2014 : Info: WARNING: Child is hung for request<br>
> 67332 in component <core> module <queue>.<br>
<br>
</div> That's likely related to the Perl script. If that's slow, there can<br>
be a whole chain of cascading failures.<br>
<div class="im"><br>
> Is there anything more I can do to troubleshoot and get more logs (exept<br>
> run radiusd -X with nohup or something). Could it be my script causing<br>
> this, or my DB or freeradius?<br>
<br>
</div> It's likely the script. But upgrading to 2.2.3 wouldn't hurt either.<br>
<span class="HOEnZb"><font color="#888888"><br>
Alan DeKok.<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</font></span></blockquote></div><br></div>