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

General discussion about Universal Media Server (no support or requests)
Post Reply
SoNic67
Posts: 5
Joined: Thu Jun 01, 2023 2:10 am

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

Post by SoNic67 »

Does anyone know what that error means?
boss
Posts: 343
Joined: Thu Jun 30, 2016 1:07 pm

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

Post 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
Post Reply