Expected UMS Memory Usage?

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Expected UMS Memory Usage?

Post by Nadahar »

Java works a bit different than most others, in that programs are run inside a "Java Virtual Machine" (JVM). You can configure how much RAM to assign to the JVM, and UMS will then use from the amount allocated to the JVM. UMS is made so that it will "automatically" claim a certain amount of memory for the JVM, using a quite simple logic. I don't remember exactly, but I think it's something like 1280 MB if you have more than 4G RAM, and 768 MB if you have less. It's possible for you to tweak this in the registry on Windows or in the startup files/script on other platforms.

UMS shouldn't use very much RAM in itself, but because of the "leak" that you have read about elsewhere, it will consume RAM as time goes by. They have implemented a "workaround" for this problem in later versions, but I don't know how well it actually works. How fast the RAM is consumed depends primarily on the number of shared files. So, it's not possible to give concrete numbers here, but it depends on the size of your library and how long you want it to run without crashing, depending on the fix ;)

UMS will crash if it runs out of RAM, so you can pretty much test how low you can get away with by try-and-fail. That said, for most people it's probably not worth the hassle, and the defaults should work reasonably ok.
Post Reply