0

i am using the tomcat 6.0 for my web application. i have used following technology in my project.

  1. quartz
  2. jasper reports
  3. Birt Reports
  4. hibernate
  5. MySQL for backhand.

now problem is that if i update something in my servlet and if my server is running it started that memory leak error. enter image description here

Mitul Maheshwari
  • 2,647
  • 4
  • 24
  • 38
  • Faced a similar issue when added Qaurtz to my enterprise application. It seems that Quartz leaves some threads flying around. Fixed when updated to `try-with-resources` – Saif Asif Feb 04 '14 at 10:44

2 Answers2

0

You are creating a thread in your application which runs indefinitely when it is getting deployed and keeps running. May be you are starting a thread in the ContextListener ex: ServletContextListener. In your case, it may be MySql driver causes this problem. If you set the option Build Automatically in your IDE say Eclipse. Whenever you make changes in your class file, your application will be compiled, build and deployed in the server again. The other thing you should note is if you have JDBC jar in your WEB-INF/lib, then move it to the tomcat server lib and restart the server. This helps in de-registering the JDBC driver in JVM level.then, you will not be getting this message

Check out this link, this will give you more options to resolve it.

Community
  • 1
  • 1
Keerthivasan
  • 12,760
  • 2
  • 32
  • 53
0

Quartz may start unmanaged threads. Check this link:

http://jira.terracotta.org/jira/browse/QTZ-194

Andres
  • 10,561
  • 4
  • 45
  • 63