[Jersey] Re: PermGen Memory Leak in Tomcat

From: Philippe Marschall <>
Date: Fri, 30 Sep 2011 13:27:36 +0200

On 09/29/2011 07:22 PM, Petr Jurák wrote:
> Hi,
> IMHO it's not an issue of Jersey but Tomcat. We had many problems like
> that (after few redeployments we need to restart Tomcat because of
> PermGenSpace) in production though we don't use Jersey in these
> production applications. We "solved" it with sheduled restarts in
> regular service breaks. :(
> Please try to search Tomcat forum for suggestion.

What makes you sure it's a Tomcat issue? Libraries not cleaning up
thread locals usually is a library issue, not a Tomcat issue.

You can try running the latest Tomcat with
ThreadLocalLeakPreventionListener [1].