Cannot increase open file descriptors above 1024

Ibrahemoo Ghost ibrahemooghost at gmail.com
Thu Nov 17 19:30:17 UTC 2022


Thanks for your reply.

I actually added freerad limits on /etc/security/limits.conf then
rebooted and also tried to run freeradius as root.
Then I discovered that increasing the limit for the user only does not
affect the service itself, By examining the soft limit file values in
/proc/$pid_of_freeradius/limits (1024)

The only way to increase the limit is by also increasing it in the
service file, but as I said after that the service won't start
anymore.

Actually now I am trying another way to solve the base problem, As
Alan suggested, is to use a shared pool across sql instances to
decrease the required open files altogether.

Best Regards
Ibrahem Ghost

On Thu, Nov 17, 2022 at 10:18 PM Pablo Umanzor <info at redlibre.cl> wrote:
>
> 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
> >
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list