Ticket #15 (closed defect: fixed)

Opened 13 years ago

Last modified 11 years ago

SaxonWebService and other webapps use perm gen space

Reported by: joshuadf Owned by: joshuadf
Priority: minor Milestone:
Component: systems Version:
Keywords: Cc:


When redeploying webapps, in some (many?) cases the ClassLoader created for the old deployment still references some objects and so will never be garbage collected. This eventually makes Tomcat throw java.lang.OutOfMemoryError: PermGen space .

You can increace permgen space with the undocumented JAVA_OPTS="-XX:PermSize=128m -XX:MaxPermSize=256m"

Change History

comment:1 Changed 12 years ago by root

  • Status changed from new to closed
  • Resolution set to fixed

(In [168]) Trivial change to test SubVersion hook edit.

  • fixes #25
  • fixes ticket #15
  • addresses ticket #5

comment:2 Changed 11 years ago by joshuadf

This may be an option for the old PermGen? space problem:


ClassLoader cl = Thread.currentThread().getContextClassLoader();
if (cl == null) cl = getClass().getClassLoader(); // fallback
Class clazz = cl.loadClass(name);
Note: See TracTickets for help on using tickets.