Ticket #15 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

SaxonWebService and other webapps use perm gen space

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

Description

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 8 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 6 years ago by joshuadf

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

http://www.odi.ch/prog/design/newbies.php#18

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.