[Solved] Java Out of Memory error during file scan

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
moyers32
Posts: 4
Joined: Tue Dec 27, 2016 8:53 am

[Solved] Java Out of Memory error during file scan

Post by moyers32 »

Hi, I keep getting "Java Out of Memory error" when doing a file scan in UMS 6.5.2 on Windows Server 2012 R2. I have changed the Heap size in Java to 10GB but the error still occurs just a little bit later. I did notice it is trying to load a lot of files at once. Attached is the log. My server configuration is the program data is on C: and all my media is on the other drive D:
Attachments
ums_dbg.zip
(344.76 KiB) Downloaded 368 times
User avatar
valib
Developer
Posts: 699
Joined: Fri Feb 08, 2013 3:11 am

Re: Java Out of Memory error during file scan

Post by valib »

Try to set "hide_empty_folders" to the default

Code: Select all

hide_empty_folders = false
and reset the cache.
moyers32
Posts: 4
Joined: Tue Dec 27, 2016 8:53 am

Re: Java Out of Memory error during file scan

Post by moyers32 »

Tried your suggestion and I get the exact same thing, Out of memory error in Java Heap Space. Any other suggestions? This computer is a Domain Controller as well.
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: Java Out of Memory error during file scan

Post by Sami32 »

Hi moyers32,

you can try that: viewtopic.php?f=9&t=9116&p=29425#p29425

Many other Java collector optimization are possible...but it'll be only a workaround for a possible memory leak or too many temporary objects and tons of weakly-referenced objects in an already very memory-constrained environment, IMO.

Did you get that issue using UMS version prior to 6.5.2 ?
moyers32
Posts: 4
Joined: Tue Dec 27, 2016 8:53 am

Re: Java Out of Memory error during file scan

Post by moyers32 »

Tried all the switches from the link provided and nothing has changed. It is still giving me the same error. I have not used any other version since this is the first time using UMS and I needed the compatibility with windows server 2012 r2.
moyers32
Posts: 4
Joined: Tue Dec 27, 2016 8:53 am

Re: Java Out of Memory error during file scan

Post by moyers32 »

just tested Version 6.5.3 and it has fixed all the errors I had. thanks
Post Reply