jitsi-videobridge: JVB crashes: "Sctp send error: : Resource temporarily unavailable"

When using the DataChannel with high load (about 10 messages per second each datachannel) jitsi sometimes crashes (looks like inside the native sctp lib)

2016-09-19 09:31:45.152 Sctp send error: : Resource temporarily unavailable 2016-09-19 09:31:45.152 JVB 2016-09-19 00:31:45.152 SEVERE: [3156] org.jitsi.videobridge.Conference.error() Failed to send message on data channel. 2016-09-19 09:31:45.152 java.io.IOException: Failed to send the data 2016-09-19 09:31:45.152 at org.jitsi.videobridge.WebRtcDataStream.sendString(WebRtcDataStream.java:146) 2016-09-19 09:31:45.153 at org.jitsi.videobridge.Endpoint.sendMessageOnDataChannel(Endpoint.java:951) 2016-09-19 09:31:45.153 at org.jitsi.videobridge.Conference.sendMessageOnDataChannels(Conference.java:237) 2016-09-19 09:31:45.153 at org.jitsi.videobridge.Endpoint.onStringData(Endpoint.java:824) 2016-09-19 09:31:45.153 at org.jitsi.videobridge.WebRtcDataStream.onStringMsg(WebRtcDataStream.java:122) 2016-09-19 09:31:45.153 at org.jitsi.videobridge.SctpConnection.onSctpPacket(SctpConnection.java:825) 2016-09-19 09:31:45.153 at org.jitsi.sctp4j.SctpSocket.onSctpIn(SctpSocket.java:517) 2016-09-19 09:31:45.153 at org.jitsi.sctp4j.SctpSocket.onSctpInboundPacket(SctpSocket.java:542) 2016-09-19 09:31:45.154 at org.jitsi.sctp4j.Sctp.onSctpInboundPacket(Sctp.java:230) 2016-09-19 09:31:45.154 at org.jitsi.sctp4j.Sctp.on_network_in(Native Method) 2016-09-19 09:31:45.154 at org.jitsi.sctp4j.Sctp.onConnIn(Sctp.java:203) 2016-09-19 09:31:45.154 at org.jitsi.sctp4j.SctpSocket.onConnIn(SctpSocket.java:479) 2016-09-19 09:31:45.154 at org.jitsi.videobridge.SctpConnection.runOnDtlsTransport(SctpConnection.java:1150) 2016-09-19 09:31:45.154 at org.jitsi.videobridge.SctpConnection.access$100(SctpConnection.java:55) 2016-09-19 09:31:45.155 at org.jitsi.videobridge.SctpConnection$1.run(SctpConnection.java:475) 2016-09-19 09:31:45.155 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-09-19 09:31:45.155 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-09-19 09:31:45.155 at java.lang.Thread.run(Thread.java:745)

About this issue

  • Original URL
  • State: open
  • Created 8 years ago
  • Comments: 25 (11 by maintainers)

Commits related to this issue

Most upvoted comments

A workaround is to use websockets for this channel instead of SCTP (we’ve been running this way for a while now).