Opened 17 years ago

Last modified 17 years ago

#472 closed defect

java.lang.OutOfMemoryError: PermGen space — at Version 2

Reported by: Jari Häkkinen Owned by: Jari Häkkinen
Priority: major Milestone: BASE 2.2
Component: core Version:
Keywords: Cc:

Description (last modified by Jari Häkkinen)

I get java.lang.OutOfMemoryError: PermGen space error when running several BASE application in parallel on one tomcat server.

Change History (2)

comment:1 by Jari Häkkinen, 17 years ago

Status: newassigned

comment:2 by Jari Häkkinen, 17 years ago

Description: modified (diff)

I am currently looking into these items (found searching the web) for a solution

  • http://wiki.apache.org/tomcat/OutOfMemory
  • Try to add more space for PermGen using -XX:MaxPermSize=256m. However, I think this will only postpone the problem. http://java.sun.com/docs/hotspot/VMOptions.html
  • in cases with different webapps with the same third party libs in the WEB-INF/lib folder it might help if the shared libs are moved to the shared/lib folder. Put only the third party libs there, that are definitely the same for all webapps, for example jdbc-driver and similar things. This helps because otherwise the libs are loaded by different classloaders
Note: See TracTickets for help on using tickets.