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.
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).