| Author |
Tomcat is holding reference to application jars
|
AmitDBond Sethi
Greenhorn
Joined: Jun 06, 2008
Posts: 11
|
|
Hi,
I am using apache-tomcat-6.0.20. I am using tomcat manager to undeploy the application.
<target name="undeployfromlocal" description="Remove web application">
<undeploy url="http://localhost:8080/manager" username="tomcat" password="s3cret" path="/contextName"/>
</target>
When I want to undeploy the application. I am able to clear every thing from webapp with the above ant target, except the 2 jars from WEB-INF/lib folder.
jaxb-impl.jar
sqljdbc4.jar
I need to stop the tomcat service to clean these two jars. I suspect that the container is some how holding the reference of these two jars (There is no other application loaded on the same tomcat).
I am also getting frequest Out of memory error, I am not sure if both the problems are related.
Could some one please help me in investigating this issue.
Thanks and Regards,
Amit Sethi
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8265
|
|
The answer to your first question is in the Tomcat FAQ
As for your OutOfMemoryError, is it occurring while the application is running or is it after several redeploys?
If you are getting it during the course of normal operations, we have a FAQ, InvestigateOutOfMemoryError that will help you get started fixing it.
If you are getting it after several redeploys, see this article about why it happens.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
AmitDBond Sethi
Greenhorn
Joined: Jun 06, 2008
Posts: 11
|
|
Hi Joe, You were spot on. I was able to get rid of the issue by using <Context antiJARLocking="true" antiResourceLocking="true"> in the conf\context.xml Now the jars are not getting locked.
Thanks a lot.
I will check for the other issue now (Out Of Memory Error).
Thanks and Regards,
Amit Sethi
|
 |
 |
|
|
subject: Tomcat is holding reference to application jars
|
|
|