[SOLVED] Ubuntu - Java OutOfMemoryError

Need help? Post your questions here.

Moderator: moderators

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Thu Jan 08, 2015 3:28 pm

Actually, I'm on Java 8 (Oracle) now - would this be a problem?
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Thu Jan 08, 2015 6:19 pm

Nevermind, I figured out the jmap problem. Apparently jmap was pointing to java 6, while subsonic was running with java 8. Using the full path to call jmap solved the problem.

Unfortunately, in the course of figuring that out I changed java versions and restarted subsonic a couple of times. Once it crashes again I'll report back with the heap dump.
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Tue Jan 13, 2015 6:05 pm

Okay, I took my heap dump after Subsonic crashed again. Jmap generated some errors, but it did generate the file so hopefully it's not corrupt. Unfortunately, it seems to be too large to attach to a post here (~28MB) so here's a dropbox link:

https://www.dropbox.com/s/m3yrkaw1dltz6 ... hprof?dl=0

I have attached the associated subsonic.log file to this post. Let me know if you have any ideas!
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: Ubuntu - Java OutOfMemoryError

Postby sindre_mehus » Tue Jan 13, 2015 9:02 pm

Thanks for your efforts, but unfortunately I'm not able to read the file.

Maybe it's because it's already ran out of memory. Perhaps you can try to create the heap dump before that happens, for instance after 24 hours or something?

Thanks!
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Tue Jan 20, 2015 11:32 pm

Okay, I've had some trouble getting the heap dump to complete successfully. I eventually uninstalled all versions of java completely and reinstalled 1.8 (Oracle) only. I was still getting errors, so decided to try 1.7 (openJDK).

Anyway, I've had Subsonic running for about 9 hours and tried doing a heap dump - the heap dump was successful, so I figured I'd post it in case there's anything useful to be gleaned. Once it crashes again I'll try doing another dump.

Anyway, heap dump is here:
https://www.dropbox.com/s/m3yrkaw1dltz6 ... hprof?dl=0

And log is here:
https://www.dropbox.com/s/4rh46rjfvy01m ... c.log?dl=0

Thanks!
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Wed Jan 21, 2015 1:26 pm

One more data point, if it's helpful. Subsonic has been running for ~24 hours without crashing so I did another heap dump. This one is more than double the size of the previous one (330 MB vs 150 MB) so maybe this will be helpful in finding whatever problem is causing memory usage to grow.

Heap dump:
https://www.dropbox.com/s/c8hp8qyqe1el2 ... hprof?dl=0

Log file:
https://www.dropbox.com/s/6rsq75h93m989 ... c.log?dl=0

Thank you!
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: Ubuntu - Java OutOfMemoryError

Postby sindre_mehus » Wed Jan 21, 2015 9:33 pm

Thanks a lot, that's very helpful!

It seems quite clear from the heap dumps that there is (still) a memory leak in the UPnP library.

Is DLNA/UPnP enabled in Settings > DLNA? If so, can you try to turn it off and see if that helps. (It doesn't disable everything related to UPnP, but perhaps it helps with respect to the memory leak)

Thanks again
Sindre
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Ubuntu - Java OutOfMemoryError

Postby sindre_mehus » Wed Jan 21, 2015 9:37 pm

See also this post: viewtopic.php?f=2&t=14253
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Wed Jan 21, 2015 10:02 pm

Great, thank you so much for your help! I have disabled DLNA and restarted; hopefully this solves the problem. If I haven't seen a crash by the end of the weekend or so, I'll report back.

Thanks again!
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Tue Jan 27, 2015 2:33 pm

Just an update - Subsonic has so far been running for 6 days without a crash. I'd say it seems like disabling DLNA solved the problem.

Thanks so much again for your help!

-Bob
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Re: [SOLVED] Ubuntu - Java OutOfMemoryError

Postby sindre_mehus » Tue Jan 27, 2015 3:33 pm

That's good news!

I guess I should disable UPnP by default. What UPnP devices are present on your network that could cause this?
Subsonic developer
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Re: [SOLVED] Ubuntu - Java OutOfMemoryError

Postby orangeshasta » Fri Jan 30, 2015 4:25 am

I'm not sure how to tell whether or not they're UPnP devices, but on my Windows 7 PC the network browser shows four items on my network that are not computers:

Under "Media Devices", there's a Sonos CONNECT and Windows Media Player sharing from one of my PCs (must not have turned that off).
Under "Network Infrastructure", there is my wireless router/gateway: Netgear WNDR3700.
Under "Other Devices", there is my Roku 2 XD.
I also have a Yamaha RX-A2000 A/V receiver connected to my network, though it doesn't show up in the Windows network browser.

Hope that helps!
orangeshasta
 
Posts: 20
Joined: Sun Apr 22, 2012 2:08 pm

Previous

Return to Help

Who is online

Users browsing this forum: No registered users and 15 guests