Menu

#115 OutOfMemoryError probably caused by DLNA server

4.9
open
nobody
1
2014-11-26
2014-04-06
Anonymous
No

I am having the problem that subsonic's memory usage is constantly growing until it crashes with "java.lang.OutOfMemoryError". For me it happens always so it is 100% reproducable for me.

I posted about this problem in the forum:
http://forum.subsonic.org/forum/viewtopic.php?f=2&t=14253

I think this is caused by subsonic's DLNA server. Disabling it fixes the issue. Also this problem pretty much popped up for me after upgrading to 4.9.

[quote]
But I am pretty sure I know now what causes this:
I took a java heap dump using Jamp and it showed one single memory object taking 240 MB of heap memory:
[img]https://dl.dropboxusercontent.com/u/24641738/subsonic_heap/heap.jpg[/img]

The object is related to Cling which seems to be the UPNP library Subsonic uses for its DLNA service. So I think the DLNA server is the culprit. I disabled DLNA in the Subsonic settings and the problem is gone :) I am now permanently hovering at around 80 MB memory usage.
This is also totally in line with my assumption that this problem popped up with the latest subsonic update (4.9). According to the changelog the DLNA server has been introduced with version 4.9.

This is the Java heap dump: https://dl.dropboxusercontent.com/u/24641738/subsonic_heap/subsonic_heap_dump.rar
[/quote]

Feel free to contact me on the forums if you need any other information or want me to test something.

Discussion

  • Anonymous

    Anonymous - 2014-04-15

    I can confirm I have the same issue on 4.9 running linux Mint 14.

     
  • Anonymous

    Anonymous - 2014-11-26

    I hope you're right, although I don't have this issue in 4.9, only 5.0. 4.9 will run fine indefinitely, but 5.0 crashes almost every night when it's doing a daily media folder scan.

     

Anonymous
Anonymous

Add attachments
Cancel