Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15 closed defect (fixed)

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 (2)

comment:1 Changed 14 years ago by root

Resolution: fixed
Status: newclosed

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

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

comment:2 Changed 13 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.