Cannot increase open file descriptors above 1024
Pablo Umanzor
info at redlibre.cl
Thu Nov 17 19:17:24 UTC 2022
try
/etc/security/limits.conf
add
freerad soft nofile 31000
freerad hard nofile 32000
i use freerad because this user launch freeradius daemon, it depends who is
the owner (could be sometimes root but not recomend)
you can check with this command
ulimii -a
if the number open files it changed
also reboot the box if the previous step it doesn't work
Best Regards
Pablo Umanzor
El jue, 17 nov 2022 a las 16:12, Ibrahemoo Ghost (<ibrahemooghost at gmail.com>)
escribió:
> I tried and it does not increase by itself, I had to also increase it
> on /lib/systemd/system/freeradius.service.
>
> [Service]
> LimitNOFILE=4000
>
> but after that the freeradius service wont start, and that's why I thought
> there is internal limit in freeradius for the file descriptors.
>
>
> On 17 Nov 2022 Thu at 9:42 PM Pablo Umanzor <info at redlibre.cl> wrote:
>
> > may be you can increase on /etc/security/limits.conf
> >
> > the values
> >
> > nofile > 1024
> >
> > to solve the issue on OS Linux
> >
> > Best Regards
> > Pablo Umanzor
> >
> >
> > El jue, 17 nov 2022 a las 13:04, Ibrahemoo Ghost (<
> > ibrahemooghost at gmail.com>)
> > escribió:
> >
> > > I use FreeRADIUS Version 3.0.20 as both proxy and (auth/acct) server.
> > > I have more than 80 realms with over 180 clients connected. Every one
> > > of them is redirecting to a different site file with separate sql
> > > module to a seperate database in the same db server.
> > >
> > > My problem is with this large amount of databases and tables i hit the
> > > fixed limit of 1024 open file descriptors and the radius.log file
> > > shows:
> > > mysql error: can't create unix socket (24)
> > >
> > > I double checked with:
> > > ls /proc/${freeradius_pid}/fd | wc -l
> > > it prints 1024 that's why I am sure its problem with the open files
> limit
> > >
> > > I tried to increase it manually but with no luck at all.
> > > Whenever I increase it the freeradius server stops working.
> > >
> > > So is there something I can do to increase the file descriptors limit ?
> > > Or am I doing something wrong?
> > > -
> > > List info/subscribe/unsubscribe? See
> > > http://www.freeradius.org/list/users.html
> > >
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> >
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
More information about the Freeradius-Users
mailing list