When I undeploy my Akka/Spray application, I get the following error in Tomcat:
Feb 25, 2014 9:27:44 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/spray-template_2.10-0.1] appears to have started a thread named [example-scheduler-1] but has failed to stop it. This is very likely to create a memory leak.
Feb 25, 2014 9:27:44 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/spray-template_2.10-0.1] appears to have started a thread named [example-akka.actor.default-dispatcher-2] but has failed to stop it. This is very likely to create a memory leak.
Looks like there are a couple of threads hanging around in memory..any ideas on how to release them? To make sure it wasn't anything related to my code, I've also used the barebone sample application, but same happens:
https://github.com/spray/spray-template
Deploying and undeploying the application a few times will ultimately result in a OOM exception (screenshot attached)
system.shutdown, system.awaitTermination, system.stop(serviceActor), serviceActor ! Kill, etc none of that seems to work..any clues??
Using: Tomcat 7, Akka 2.2.3 and 2.3.0-RC3, Spray 1.2.0 and 1.3-RC1
Any help would be much appreciated
Cheers
Tulio