[Freeswitch-users] CPU availability?

Andrew Clayton andrew at zeta.digital-domain.net
Fri Jul 24 01:51:56 UTC 2020


On Sat, 11 Jul 2020 10:37:39 -0700
Joel Serrano <joel at textplus.com> wrote:

> Have you checked the max-sessions (switch.conf.xml) and the ulimits etc (OS
> level)?

Pay particular attention to your open file limits (ulimit -n),
traditionally on Linux this has defaulted to 1024 per process.

Of course if you're getting to 2000 connections then you likely have a
higher limit than 1024, perhaps 4096 or some such and if FS is using 2
sockets per connection...

The simplest way to check what limits a process is currently using is
to look in /proc/PID/limits, where PID is the process id of the process
you want to examine. Look for the 'Max open file' line.

The 'soft' limit is what is currently in use.

There are numerous ways of changing these, if you are on a semi-recent
distro check the prlimit(1) command.

Cheers,
Andrew



More information about the FreeSWITCH-users mailing list