What is thread limit 1310


#1

Hello,

When I start videobridge I have this warning

WARNING: Running with open files limit 2048 (hard 2048), thread limit 1310 (hard 1310). These values are too low and they will limit the number of participants that the bridge can serve simultaneously.

I managed to increase the open files limit from 1024 to 2048 but I don’t know what’s the knob to increase the thread limit, is it java related ?

Also, what are the recommended settings ?

Thank you


#2

So I’m working on adding systemd unit file for jvb(https://github.com/jitsi/jitsi-videobridge/tree/systemd) so all these will be pre-set. The thread limit you can control from there or you can in /etc/systemd/logind.conf add UserTasksMax=80%.

I was adding these settings to be default:


#3

Hello Damencho,

Do you know how does it retrieve these values ?
On Openbsd it corresponds to kern.maxproc

It would be nice to see in the Warning, which value is too low and which ones are recommended.

WARNING: Running with open files limit 2048 (hard 2048), thread limit 1310 (hard 1310). These values are too low and they will limit the number of participants that the bridge can serve simultaneously.

Should I open a feature request ?


#4

You can check the description here: https://github.com/jitsi/jitsi-meet/blob/master/doc/quick-install.md#systemd-details
We added those just for informing the user, everything is extracted from the running process using ulimit:
https://github.com/jitsi/jitsi-videobridge/blob/master/src/main/java/org/jitsi/videobridge/util/UlimitCheck.java#L86