Wie lösen memory-leak-Probleme?

Ich habe ein problem mit Faden-und memory-leak...In der log von meinem Tomcat7 fand ich diese Zeilen über meine grails-Anwendung:

SEVERE: The web application [/myApp] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-1] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-2] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-3] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-4] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-5] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-6] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2012 6:02:10 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/myApp] appears to have started a thread named [pool-63-thread-7] but has failed to stop it. This is very likely to create a memory leak.

mehr von denen...
Das problem ist, dass ich denke, dass alle diese threads erstellt werden, in der ein Teil der Anwendung entwickelt von einem 3th-party-JAR-Datei die ich habe nicht die Quelle, und ich kann nicht ändern durch mich.

Gibt es einen Weg, es zu lösen, oder zumindest zu verstehen, was ist nicht gut?

Dank

Hatte das selbe problem auch einmal, habe nicht wirklich eine Lösung zu finden, aber es immer noch gut funktioniert. Wer weiß, ob das abstreifen des Krieges-Datei-Größe eine Auswirkung?

InformationsquelleAutor rascio | 2012-05-16

Schreibe einen Kommentar