meetecho / janus-gateway

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

janus core dump "Too many open files" #3079

Closed ghost closed 2 years ago

ghost commented 2 years ago

We tested janus (commit fe82f4c09006f9532dc09b6419c0c0cd11574658) with video room plugin against ~ 30 users. OS: Linux localhost 5.19.2-x86_64-linode156

$ ulimit
unlimited

cat /proc/sys/fs/file-max
ulimit -Hn
ulimit -Sn

9223372036854775807
1048576
1024

At some point janus crashed with following error:

(janus:2858): GLib-ERROR **: 13:33:30.247: Creating pipes for GWakeup: Too many open files
p:4 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:12 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:13 urn:3gpp:video-orientation
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=ssrc-group:FID 1895478781 1080537315
a=msid:janus janus1
a=ssrc:1895478781 cname:janus
a=ssrc:1080537315 cname:janus
a=candidate:1 1 udp 2015363583 139.144.78.211 44477 typ host
a=end-of-candidates

[5911380549978725] Sending event to transport...
  >> Pushing event: 0 (took 878 us)
Configuring new participant
Configuring new subscriber
[WARN] Deprecated subscriber 'join' API: please start looking into the new one for the future
Preparing JSON event as a reply
[3832136162160685] There are 1 audio, 1 video and 0 data m-lines
[3832136162160685] Setting ICE locally: got ANSWER
[3832136162160685] Creating ICE agent (ICE Full mode, controlling)
[ERR] [ice.c:janus_ice_setup_local:3569] [3832136162160685] Error getting list of interfaces... 24 (Too many open files)

Backtrace for the core dump you can find here: https://gist.github.com/kuba-pb/b54d639704a891e42ed877cde066a963

lminiero commented 2 years ago

https://janus.conf.meetecho.com/docs/FAQ.html#ulimit