Got Error occurred during initialization of VM

Hi
i’ve been looking to fix this whole day, cant get it works
my vps are ubuntu 18.04 x86
cpu 2
ram 4GB
with ssd 50gb

running

service jitsi-videobridge2 restart

not work, error log bellow

tail -f /var/log/jitsi/jvb.log
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

how to solve this?

You need more RAM. Jicofo and Bridge needs 3GB. So recommened for one machine is 8GB.

Hi,
I’m getting exactly the same issue on a very similar setup after the latest update. My server has been running perfectly fine with 1GB of RAM for weeks, what’s changed such that 8GB is now needed?
Is there a config setting I can change to allow it to work on my 1GB server (on the understanding that performance will be hit),

Cheers

1 Like

hi

i am now on 8,8GB ram
jitsi-videobridge2 still failed

service jitsi-videobridge2 status
● jitsi-videobridge2.service - Jitsi Videobridge
Loaded: loaded (/lib/systemd/system/jitsi-videobridge2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-04-08 19:02:55 PDT; 1s ago
Process: 640 ExecStartPost=/bin/bash -c echo $MAINPID > /var/run/jitsi-videobridge/jitsi-videobridge.pid (code=exited, status=0/SUCCESS)
Process: 639 ExecStart=/bin/bash -c exec /usr/share/jitsi-videobridge/jvb.sh --host=$${JVB_HOST:-localhost} --domain={JVB_HOSTNAME} --port={JVB_PORT} --secret={JVB_SECRET} {J
Main PID: 639 (code=exited, status=1/FAILURE)

Apr 08 19:02:55 cangkruk.ipanel.id systemd[1]: Starting Jitsi Videobridge…
Apr 08 19:02:55 cangkruk.ipanel.id systemd[1]: Started Jitsi Videobridge.
Apr 08 19:02:55 cangkruk.ipanel.id systemd[1]: jitsi-videobridge2.service: Main process exited, code=exited, status=1/FAILURE
Apr 08 19:02:55 cangkruk.ipanel.id systemd[1]: jitsi-videobridge2.service: Failed with result ‘exit-code’.

and jvb.log

Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap

What does free shows?

here

root@cangkruk:~# free -m
total used free shared buff/cache available
Mem: 8893 55 8684 10 153 8231
Swap: 0 0 0

2020-04-09 09_28_22-Window

That is strange then. Are there any special settings … syslinux somethiing? I don’t know, something that can prevent process to use some amount of memory.
Jvb and Jicofo are configured to use up to 3GB https://github.com/jitsi/jitsi-videobridge/blob/master/resources/jvb.sh#L32

syslinux not install

let me try to reinstall this

Update

got it works with UBUNTU 18.04 64 bit
it must in 64 bit
before that i used 32 bit

specs 2 core, 8gb ram
disk 50gb

thanks!