Page 1 of 1

V5.0.0 Memory Leak

Posted: Mon Feb 16, 2015 6:08 am
by michaelt
Now that I can play V5, the memory leak is still there from V4. It succeeds in eating up all available memory: 24+GB of a 32GB system. The problem is not the use of it (active) but lack of use (inactive) - unused and not released (freed) by the program (UMS), quitting UMS or even logging out. The system must be rebooted.

I am not a java programmer so I cannot further debug it.
What I have observed is:
  • 1 - idle, not playing, is stable, even for long times and
    2 - playing (SD or blu-ray) eats memory up.
Not sure what is broken but it precludes UMS from being used as an unattended media server for any significant period of time since the system must be rebooted to recover the memory.
This is real bad.

Re: V5.0.0 Memory Leak

Posted: Mon Feb 16, 2015 10:39 am
by SubJunk
Is it different if you try a different Java release? I haven't noticed any memory leaks using the Java 7 version.

Re: V5.0.0 Memory Leak

Posted: Mon Feb 16, 2015 10:51 am
by michaelt
SubJunk wrote:Is it different if you try a different Java release? I haven't noticed any memory leaks using the Java 7 version.
It is the same for UMS 4.4.0 Java 6 & UMS 5.0.0 Java 8.

Edit: over the period of one movie it eats up and strands ΒΌ of my memory - ~8GB. If I do a few, all available then paging gets heavy.

Re: V5.0.0 Memory Leak

Posted: Mon Feb 16, 2015 1:17 pm
by SubJunk
But not 5.0.0-Java6 or 5.0.0-Java7? Or you haven't tested them?

Re: V5.0.0 Memory Leak

Posted: Mon Feb 16, 2015 3:00 pm
by michaelt
SubJunk wrote:But not 5.0.0-Java6 or 5.0.0-Java7? Or you haven't tested them?
I need to to figure out how to switch easily - again I am not java savvy - just a user.

Re: V5.0.0 Memory Leak

Posted: Mon Feb 16, 2015 9:12 pm
by SubJunk
Java is backwards-compatible so if you have Java 8 installed, then you can use any of the versions of UMS.

Re: V5.0.0 Memory Leak

Posted: Thu Feb 19, 2015 5:49 am
by michaelt
SubJunk wrote:Is it different if you try a different Java release? I haven't noticed any memory leaks using the Java 7 version.
Will edit this after each test. Updated 02-18 17:53

Note:
- added Samsung-C8.conf file to each app first.
- had to stop PF firewall for it to work.

Results in order of testing:

V5.0.1 J8:
- unsupported video format

V5.0.1 J7:
- Asks: "allow input connections"
- unsupported video format

V5.0.1 J6:
- Mem Inactive: 1h=11GB, 2h=23GB. 3h=25GB but not paging!
--- it ate up all but 27MB of free memory but when next movie started it dropped to 14MB & paging went up an insignificant few MB.

V5.0.1 J7:
- Asks: "allow input connections"
- Mem Inactive: 1h=2.3GB, 2h=4GB, 2h44m(end)=5.8GB - no paging

V5.0.1 J8:
- Asks: "allow input connections"
- Mem Inactive: 1h=15.2GB, 2h(end)=27.7GB - <200MB free - minimal paging as for J6

<150MB recovered when UMS terminates, 1.1GB more after logout.