[Jicofo] Java OutOfMemoryError

Hello,

I installed jitsi-meet on my own ubuntu linux server following this great youtube video.

After the installation, I could create a room but starting a conference failed. The log-file jicofo.log shows the following entries approximately every 20 seconds:

java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1025)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Jicofo 2019-10-20 14:54:28.761 SCHWERWIEGEND: [63553] org.jitsi.xmpp.component.ComponentBase.log() Ping timeout for ID: k9PaV-300524
Jicofo 2019-10-20 14:54:29.402 SCHWERWIEGEND: [63553] org.jitsi.xmpp.component.ComponentBase.log() Ping timeout for ID: k9PaV-300527
Jicofo 2019-10-20 14:54:38.761 SCHWERWIEGEND: [63553] org.jitsi.xmpp.component.ComponentBase.log() Ping timeout for ID: k9PaV-300530
Jicofo 2019-10-20 14:54:39.403 SCHWERWIEGEND: [63553] org.jitsi.xmpp.component.ComponentBase.log() Ping timeout for ID: k9PaV-300531
Jicofo 2019-10-20 14:54:46.300 SCHWERWIEGEND: [64454] util.UtilActivator.uncaughtException().122 An uncaught exception occurred in thread=Thread[pool-64378-thread-1,5,main] and message was: unable to create new native thread
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:717)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:957)
at java.util.concurrent.ThreadPoolExecutor.processWorkerExit(ThreadPoolExecutor.java:1025)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Java Version:
openjdk version “1.8.0_222”
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

The server has 4 GB of RAM. Output of free -m:

          Gesamt   belegt    frei        gemns. Puffer/Cache verfügbar

Speicher: 4096 283 3637 1 175 3811

So, is 4 GB RAM simply not enough?
Or any other suggestions?

Thank you for your help!
rk7

By default jvb and jicofo start with params so they can use up to 3GB of ram, so it is recommended when you run them on the same machine to have at least 8GB of RAM.

Ok, upgraded ram, now it runs perfectly. Thanks!

rk7