Page 1 of 1

INFO Exception in thread "pool-7-thread-29" java.lang.OutOfMemoryError: Java heap space

Posted: Sat Jun 10, 2023 7:34 am
by SoNic67
Does anyone know what that error means?

Re: INFO Exception in thread "pool-7-thread-29" java.lang.OutOfMemoryError: Java heap space

Posted: Sat Jun 10, 2023 2:16 pm
by boss
Yes, it has been an ongoing problem with UMS for years.
Basically, Java is running out of heap space.
If you are leaving UMS running 24/7 (like me), it can happen.

You can increase the heap space allocation in your Java config although this will not fix the issue but let UMS run longer before it happens.
Are you running LG TV's?

My UMS is on a Gentoo Linux server. I get around the issue (in a way) by running a cron job which checks the UMS log every 15 minutes for the text: "OutOfMemory" and if it exists, UMS is restarted.

If you want to increase the Java heap size allocation.
Edit /UMS/UMS.sh
And increase the value here:
# Provide a means of setting max memory using an environment variable
if [ -z "$UMS_MAX_MEMORY" ]; then
UMS_MAX_MEMORY=1280M
fi