Tomcat6 memory leak issues

Need help? Post your questions here.

Moderator: moderators

Tomcat6 memory leak issues

Postby benje101 » Tue Nov 20, 2012 8:37 pm

Dear All,

I've recently been re-experimenting with running Subsonic on an ARMv5 Sheevaplug. It was seeming to run nice and stably for a couple weeks, serving a 1TB library
--> via subsonic.war under Tomcat6.0.35 and Oracle(Embedded, Headless, ARMv5) JVM 1.7.0_06-b24

but recently I've been having memory leaks, and/or problems restarting Subsonic after a couple of network and power fails that aren't connected but did require a few unscheduled restarts -of both Tomcat and the Sheevaplug


If I click on "Find Leaks" on the Tomcat Manager webpage, I get message like this:

The following web applications were stopped (reloaded, undeployed), but their
classes from previous runs are still loaded in memory, thus causing a memory
leak (use a profiler to confirm):
/subsonic
/subsonic
/subsonic
/subsonic

...and deleting directory/reinstalling isn't the way round this - can get that to work, but it's not a longer term fix! ;) ; any clues please....??

Apparently Tomcat7 is better at removing these old classes from previous runs, but Subsonic apparently isn't working under Tomcat7
...so any work arounds or solutions welcome --I'm sure it's probably a case of adding the right lines to the right configuration file(s), but I've haven't googled a successful nugget of information on this yet.

KR,
Ben

p.s. OS is Debian Squeeze and Kernel is 2.6.32-5-kirkwood
thankyou all freeware developers!
benje101
 
Posts: 7
Joined: Mon Jun 14, 2010 3:12 pm

Re: Tomcat6 memory leak issues

Postby hakko » Tue Nov 20, 2012 9:23 pm

Does Madsonic/Supersonic/any other mod run on Tomcat 7?

I keep announcing the mod I maintain, MusicCabinet, which runs on Tomcat 7 / Jetty 8. But it's much more specialized and heading away from the original Subsonic code base, as it only strives to create a more advanced music streaming server. So I guess it would be good if other mod maintainers took on supporting Tomcat 7 too. Or even Sindre.

.. anyone?
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Tomcat6 memory leak issues

Postby benje101 » Wed Nov 21, 2012 3:51 pm

thanks hakko, i might try one of those derivatives or yours eventually (i'm not too interested in the video side anyways)

but for now, I'd quite like to stabilise my subsonic.war/tomcat6 "classes from previous runs still loaded" issues,
if anyone has any clues on that ???

cheers,
Ben


---

P.S. RE MusicCabinet though, will 'subsonic apps' (e.g. Sindre's Android one) still work with MusicCabinet as the alternative server ?
thankyou all freeware developers!
benje101
 
Posts: 7
Joined: Mon Jun 14, 2010 3:12 pm

Re: Tomcat6 memory leak issues

Postby hakko » Wed Nov 21, 2012 4:07 pm

Just answering the PS question: the Android app will work with MusicCabinet, and the extended features (view related artists / play top tracks for an artist / browse artists by genre / generate playlists based on genre or an artist) are included too, without updating the app itself.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden


Return to Help

Who is online

Users browsing this forum: No registered users and 42 guests