V5.0.0 Memory Leak

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
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

V5.0.0 Memory Leak

Post 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.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: V5.0.0 Memory Leak

Post by SubJunk »

Is it different if you try a different Java release? I haven't noticed any memory leaks using the Java 7 version.
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: V5.0.0 Memory Leak

Post 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.
Last edited by michaelt on Mon Feb 16, 2015 2:59 pm, edited 1 time in total.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: V5.0.0 Memory Leak

Post by SubJunk »

But not 5.0.0-Java6 or 5.0.0-Java7? Or you haven't tested them?
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: V5.0.0 Memory Leak

Post 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.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
User avatar
SubJunk
Lead Developer
Posts: 3800
Joined: Sun May 27, 2012 4:12 pm

Re: V5.0.0 Memory Leak

Post by SubJunk »

Java is backwards-compatible so if you have Java 8 installed, then you can use any of the versions of UMS.
michaelt
Posts: 155
Joined: Tue Feb 03, 2015 11:18 am
Location: lost in the depths of my mind

Re: V5.0.0 Memory Leak

Post 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.
MacPro5,1 - 2.8 GHz, 32 GB, 20TB, OS X 10.11.6,
. . . . and a few others.
Samsung UN55C8000
Home Theater (WIP): OS X based now, dedicated Linux later.
Post Reply