meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.17k stars 2.47k forks source link

[1.x] #3207

Closed xunlujiehuo closed 1 year ago

xunlujiehuo commented 1 year ago

What version of Janus is this happening on? v1.1.3

Have you tested a more recent version of Janus too? no

Was this working before? new request

Is there a gdb or libasan trace of the issue?

Additional context When I stress test Janus using srs-bench, it reports ice.c:janus_ice_setup_local:3606] [616367284750536] Error getting list of interfaces... 24 (Too many open files) then collapsed. I set the maximum number of open files opened by the process in the system settings to 65535, and the maximum number of files opened by the system to be 655360.
I check with lsof -p that occurs when janus opens more than 1024 files, and I can make sure that the ulimit -n parameter I set is correct. When I use gdb for debugging, the error appears but the process does not crash。 This question confuses me very, very much

lminiero commented 1 year ago

The error is already telling you what the problem is, which is documented in the FAQ too: https://janus.conf.meetecho.com/docs/FAQ.html#ulimit Probably the ulimit change you're making is not being used the way you launch Janus, especially if it reports 1024 still being the limit there.

xunlujiehuo commented 1 year ago

The error is already telling you what the problem is, which is documented in the FAQ too: https://janus.conf.meetecho.com/docs/FAQ.html#ulimit Probably the ulimit change you're making is not being used the way you launch Janus, especially if it reports 1024 still being the limit there.

Yes, my janus was started with the service mode of the system, I switched to using the command line to start and this problem disappeared, really thank you.