[Solved] Out of Memory - OOM Killer issues.

Unimus support forum
Post Reply
goovefox
Posts: 1
Joined: Tue Aug 06, 2024 2:31 pm

Tue Aug 06, 2024 2:48 pm

Hi All,

My Unimus Java process keeps getting killed by the OOM Killer. I am running this on Ubuntu Linux in AWS. The Out Of Memory Killer is a fail-safe but it is also stopping Unimus from being helpful. Unimus will run for a few hours and then run out of memory and crash. I have a external MySQL server, so this server is only running the Unimus Java process. The server has 2GB of RAM and I have set the Java start to "-Xms256M -Xmx2000M -Djava.security.egd=file:/dev/./urandom". I only have three devices in Unimus at the moment I should have more than enough RAM. Any ideas as to why Java is using all the RAM and how to stop it?

Thanks for any help.
User avatar
Tomas
Posts: 1308
Joined: Sat Jun 25, 2016 12:33 pm

Tue Aug 06, 2024 2:54 pm

goovefox wrote:
Tue Aug 06, 2024 2:48 pm
Hi All,

My Unimus Java process keeps getting killed by the OOM Killer ... The server has 2GB of RAM and I have set the Java start to "-Xms256M -Xmx2000M -Djava.security.egd=file:/dev/./urandom" ... Any ideas as to why Java is using all the RAM and how to stop it?
Hi, if your server / VM has 2GB of RAM, you can't set Unimus to use the full 2 GB. The OS needs memory to run as well. So when Unimus tries to claim full 2 GB, the OOM killer kills the process to make sure the OS itself doesn't crash.

The OS should have around a Gig of memory to run safely, so in case of a 2GB RAM VM, you should set Unimus to use 1 GB, with "-Xms256M -Xmx1024M". This should solve the issue.
Post Reply