You're right but for the moment this is not my priority. Anyway I post the lines of code in the catalina.out logfile with errors:
3-dic-2010 11.32.05 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc GRAVE: The web application [/OverEncrypt] registered the JBDC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 3-dic-2010 11.32.05 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads GRAVE: The web application [/OverEncrypt] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak. I think the second GRAVE error is that significant. Pid * wrote: > > On 12/7/10 10:13 AM, pix_siro wrote: >> >> I solved writing a simple script to shutting down tomacat and kill the >> java >> process: >> >> # stop tomcat >> su - primelife -c "/usr/local/apache-tomcat-7.0.4/bin; ./shutdown.sh >>> /dev/null 2>&1" >> >> # give application 5 seconds to stop itself >> sleep 2 >> >> # if application is still running kill it anyway >> app_pid=$(ps axuw | grep -v grep | grep >> "/usr/local/apache-tomcat-7.0.4/bin" >> | awk '{print $2}') >> [[ "x${app_pid}x" == "xx" ]] || kill -9 ${app_pid} >/dev/null 2>&1 >> >> Thanks. > > You've treated the symptom. What was the actual problem? > > If you stop an application, or Tomcat and the catalina.out logfile > contains warnings about threads still running, you'll have an idea of > what's wrong. (Which is why we asked for more information.) > > Alternatively, ignore the problem and any other side-effects it might > have. > > > p > > >> markt-2 wrote: >>> >>> On 03/12/2010 18:36, pix_siro wrote: >>>> >>>> Hi all, >>>> I'm working on Ubuntu 9.10, I have implemented a Java application and I >>>> have >>>> installed it on Tomcat 7.0.4 with a WAR file. When I shut down Tomcat >>>> with >>>> the command ./shutdown.sh, a java thread remains open. Notice that >>>> application have a connection with a postgres db but the connections >>>> are >>>> correctly closed. Someone know why? >>>> With the command ps ax | grep java I have the thread's specifications: >>> >>> That is the process, not the specific Java thread. Take a thread dump to >>> see what threads are still running. You want the non-daemon one. >>> >>> Mark >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >>> >> > > > > > -- View this message in context: http://old.nabble.com/java-thread-open-after-Tomcat-shutting-down-tp30366568p30395039.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org