memory leak in tomcat 6

154 views
Skip to first unread message

Andrea Nasato

unread,
Feb 27, 2013, 4:10:45 PM2/27/13
to paranco...@googlegroups.com
Hi to all,

I've developed a webapp using parancoe (2.0.1) and I'm deploying it on tomcat 6 with jdk 1.6 on a linux box. When I try to shutdown tomcat, the instance remains alive. This is a fragment of catalina.out:

INFO: Stopping service Catalina
2013-02-27 21:52:09,752 [INFO] org.parancoe.web.ContextListener: ### Shutting down Parancoe in DEVELOPMENT mode.
Feb 27, 2013 9:52:09 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/test] 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.
Feb 27, 2013 9:52:10 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

This is a little bit annoying because the only way to stop tomcat is to kill its process.

This is my current configuration:
- parancoe 2.0.1 
- postgresql 9.1
- tomcat 6.0.36
- jdk 1.6.0_35
- debian wheezy

Is there a workaround that gives me the ability to stop tomcat in a clean way?

TYA,

Andrea

Enrico

unread,
Feb 27, 2013, 6:37:59 PM2/27/13
to paranco...@googlegroups.com
Hi,
In The New, under development, jugevents, we are using parancoe 3.0; anyway I get the same error message on Ubuntu , postgres and jdk 1.6.

Anyway I don't have to kill the process later on, I use ctrl + c if started with catalina.sh run or catalina.sh stop if started with catalina.sh start.

In both cases the tomcat process is over.

Hope it helps,
Enrico.

Inviato da iPhone
--
You received this message because you are subscribed to the Google Groups "Parancoe-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to parancoe-user...@googlegroups.com.
To post to this group, send email to paranco...@googlegroups.com.
Visit this group at http://groups.google.com/group/parancoe-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andrea Nasato

unread,
Feb 28, 2013, 5:39:15 PM2/28/13
to paranco...@googlegroups.com
On Thu, Feb 28, 2013 at 12:37 AM, Enrico <enrico...@gmail.com> wrote:
Hi,
In The New, under development, jugevents, we are using parancoe 3.0; anyway I get the same error message on Ubuntu , postgres and jdk 1.6.

Anyway I don't have to kill the process later on, I use ctrl + c if started with catalina.sh run or catalina.sh stop if started with catalina.sh start.

In both cases the tomcat process is over.


Hi Enrico,

thank for your response, but my mileage varies :) In the first attachment I give you an example of catalina.out after stopping my webapp using shutdown.sh. You can see a few logs with level SEVERE complaining about a possible memory leak. In the end of the log it seems that Tomcat stops successfully but a process is still alive:

andrean@debian-nasato:~$ ps -eaf | grep tomcat
andrean  11816     1  1 22:51 pts/11   00:00:23 /usr/local/lib/jdk1.6.0_35//bin/java -Djava.util.logging.config.file=/opt/apache/tomcat/apache-tomcat-6.0.36/conf/logging.properties -server -Xms128m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -XX:+UseParallelGC -DENVIRONMENT=PRODUCTION -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/apache/tomcat/apache-tomcat-6.0.36/endorsed -classpath /opt/apache/tomcat/apache-tomcat-6.0.36/bin/bootstrap.jar -Dcatalina.base=/opt/apache/tomcat/apache-tomcat-6.0.36 -Dcatalina.home=/opt/apache/tomcat/apache-tomcat-6.0.36 -Djava.io.tmpdir=/opt/apache/tomcat/apache-tomcat-6.0.36/temp org.apache.catalina.startup.Bootstrap start
andrean  27366 18151  0 23:15 pts/10   00:00:00 grep tomcat
andrean@debian-nasato:~$

This isn't a big issue for me, I'm going to create a wrapper around shutdown.sh which kills the process.

Thanks
Andrea

--
Andrea Nasato
http://www.gtrev.it
catalina.out
Reply all
Reply to author
Forward
0 new messages