125% CPU usage from JVB!

Were are seeing high CPU usage and using the command top, it shows JVB as the culprit.

Currently using a 4CPU 8GBRam from vultr. I saw it as high as 225% before restarting it. It sat fairly low for a little bit, but now is back to 125% CPU.

How can I resolve this? I’m new to all of this, so not sure where to begin.

It’s up to 225% again now.

Any help?

It is hard to identify such kind of problems. You need to do cpu profiling yourself to be able to narrow the problem. Do you see anything unusual in the logs, when the cpu goes up? Are you using java8?

openjdk version “1.8.0_191”
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

i will try again to read logs.

What sort of load is the bridge under when this occurs? I.e., how many participants/conferences?

Dear,
i am facing same problem. after ending conference (there is no user in conference). jvb still using high CPU. but when i restart jitsi-videobridge service system CPU becomes normal.

I don’t have exact details, but this is only used for my works internal communication. I imagine max of 2 rooms at any given time, and max of about 12-15 people connected.

It seems it just slowly builds up after restarting, and never returns to normal levels.


JVB 2019-06-18 15:04:46.821 FINE: [168] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Processing IQ (packetId 2XbbK-3356): <iq id="2XbbK-3356" type="result" to="jitsi-videobridge.meet.redacted.com" from="meet.redacted.com"/>
JVB 2019-06-18 15:04:51.357 WARNING: [44228] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 4d72be6c to send EndpointMessage
JVB 2019-06-18 15:04:52.478 INFO: [45] org.jitsi.videobridge.Videobridge.log() CAT=stat create_conf,conf_id=b2b3e73eb623dec0 conf_name=null,logging=false,conf_count=2,ch_count=9,v_streams=9
JVB 2019-06-18 15:04:52.492 INFO: [45] org.jitsi.videobridge.health.Health.log() Performed a successful health check in 14ms. Sticky failure: false
JVB 2019-06-18 15:04:55.032 WARNING: [44259] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 4d72be6c to send EndpointMessage
JVB 2019-06-18 15:04:55.898 FINE: [143] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Processing IQ (packetId 1y6sX-10412): <iq type="get" to="jitsi-videobridge.meet.redacted.com" from="focus@auth.meet.redacted.com/focus1097540357451134" id="1y6sX-10412"><healthcheck xmlns="http://jitsi.org/protocol/healthcheck"/></iq>
JVB 2019-06-18 15:04:55.898 FINE: [143] org.jitsi.videobridge.xmpp.ComponentImpl.processIQRequest() (serving component 'JitsiVideobridge') Processing IQ request (packetId 1y6sX-10412).
JVB 2019-06-18 15:04:55.898 FINE: [143] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Responding to IQ (packetId 1y6sX-10412) with: <iq to="focus@auth.meet.redacted.com/focus1097540357451134" from="jitsi-videobridge.meet.redacted.com" id="1y6sX-10412" type="result"/>
JVB 2019-06-18 15:04:56.753 WARNING: [44264] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 4d72be6c to send EndpointMessage
JVB 2019-06-18 15:04:56.822 FINE: [170] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Processing IQ (packetId 2XbbK-3360): <iq id="2XbbK-3360" type="result" to="jitsi-videobridge.meet.redacted.com" from="meet.redacted.com"/>
JVB 2019-06-18 15:05:01.356 WARNING: [44272] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 4d72be6c to send EndpointMessage
JVB 2019-06-18 15:05:02.492 INFO: [45] org.jitsi.videobridge.Videobridge.log() CAT=stat create_conf,conf_id=82c2dc211804b44f conf_name=null,logging=false,conf_count=2,ch_count=9,v_streams=9
JVB 2019-06-18 15:05:02.513 INFO: [45] org.jitsi.videobridge.health.Health.log() Performed a successful health check in 21ms. Sticky failure: false
JVB 2019-06-18 15:05:03.227 SEVERE: [32] org.ice4j.socket.jdk8.DelegatingSocketChannel.<init>() Cannot find method translateInterestOps
java.lang.NoSuchMethodException: sun.nio.ch.SelChImpl.translateInterestOps(int)
        at java.lang.Class.getMethod(Class.java:1786)
        at org.ice4j.socket.jdk8.DelegatingSocketChannel.<init>(DelegatingSocketChannel.java:96)
        at org.ice4j.socket.jdk8.PreReadSocketChannel.<init>(PreReadSocketChannel.java:51)
        at org.ice4j.socket.jdk8.MuxServerSocketChannel.filterAccept(MuxServerSocketChannel.java:239)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.filterAccept(MuxingServerSocketChannel.java:806)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.testRunInReadThreadPredicate(MuxingServerSocketChannel.java:1096)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.access$700(MuxingServerSocketChannel.java:38)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel$7.test(MuxingServerSocketChannel.java:990)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel$7.test(MuxingServerSocketChannel.java:986)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInSelectorThread(MuxingServerSocketChannel.java:457)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInReadThread(MuxingServerSocketChannel.java:965)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel$8.run(MuxingServerSocketChannel.java:1017)
JVB 2019-06-18 15:05:03.284 SEVERE: [32] org.ice4j.socket.jdk8.DelegatingSocketChannel.<init>() Cannot find method translateInterestOps
java.lang.NoSuchMethodException: sun.nio.ch.SelChImpl.translateInterestOps(int)
        at java.lang.Class.getMethod(Class.java:1786)
        at org.ice4j.socket.jdk8.DelegatingSocketChannel.<init>(DelegatingSocketChannel.java:96)
        at org.ice4j.socket.jdk8.PreReadSocketChannel.<init>(PreReadSocketChannel.java:51)
        at org.ice4j.socket.jdk8.MuxServerSocketChannel.filterAccept(MuxServerSocketChannel.java:239)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.filterAccept(MuxingServerSocketChannel.java:806)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.testRunInReadThreadPredicate(MuxingServerSocketChannel.java:1096)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.access$700(MuxingServerSocketChannel.java:38)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel$7.test(MuxingServerSocketChannel.java:990)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel$7.test(MuxingServerSocketChannel.java:986)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInSelectorThread(MuxingServerSocketChannel.java:457)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel.runInReadThread(MuxingServerSocketChannel.java:965)
        at org.ice4j.socket.jdk8.MuxingServerSocketChannel$8.run(MuxingServerSocketChannel.java:1017)
JVB 2019-06-18 15:05:05.047 WARNING: [44303] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 4d72be6c to send EndpointMessage
JVB 2019-06-18 15:05:05.898 FINE: [172] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Processing IQ (packetId 1y6sX-10416): <iq type="get" to="jitsi-videobridge.meet.redacted.com" from="focus@auth.meet.redacted.com/focus1097540357451134" id="1y6sX-10416"><healthcheck xmlns="http://jitsi.org/protocol/healthcheck"/></iq>
JVB 2019-06-18 15:05:05.898 FINE: [172] org.jitsi.videobridge.xmpp.ComponentImpl.processIQRequest() (serving component 'JitsiVideobridge') Processing IQ request (packetId 1y6sX-10416).
JVB 2019-06-18 15:05:05.899 FINE: [172] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Responding to IQ (packetId 1y6sX-10416) with: <iq to="focus@auth.meet.redacted.com/focus1097540357451134" from="jitsi-videobridge.meet.redacted.com" id="1y6sX-10416" type="result"/>
JVB 2019-06-18 15:05:06.749 WARNING: [44308] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 4d72be6c to send EndpointMessage
JVB 2019-06-18 15:05:06.822 FINE: [195] org.jitsi.videobridge.xmpp.ComponentImpl.processIQ() (serving component 'JitsiVideobridge') Processing IQ (packetId 2XbbK-3364): <iq id="2XbbK-3364" type="result" to="jitsi-videobridge.meet.redacted.com" from="meet.redacted.com"/>
JVB 2019-06-18 15:05:06.898 WARNING: [44310] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 9a5a7cb2 to send EndpointMessage
JVB 2019-06-18 15:05:06.912 WARNING: [44311] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 9a5a7cb2 to send EndpointMessage
JVB 2019-06-18 15:05:07.063 WARNING: [44312] org.jitsi.videobridge.AbstractEndpointMessageTransport.log() Unable to find endpoint 9a5a7cb2 to send EndpointMessage

Anything suspicious in the log?