Unifi Controller Java max CPU load

Running Unifi Controller Version 6.2.26 on a Ubuntu 20.04 VM with 2 GB memory. Since upgrading to the latest version of the Unifi Controller software, the system overloaded after running for about four days.

Turned out that Java (used for running Unifi Controller) process was using all CPU resources. Killing all Java processes and restarting services (or rebooting the machine) solved the issue for the time being. Java process stays below 1 percent CPU usage.

The fix I implemented is adding two lines to the system.properties file (located in /usr/lib/unifi/data ) :

unifi.xms=1024
unifi.xmx=1024

Just add these lines at the end of the file, save and restart the Unify Controller.

Visitor Score
[Total: 1 Average: 5]