Opened 18 years ago
Closed 18 years ago
#472 closed defect (fixed)
java.lang.OutOfMemoryError: PermGen space
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 )
I get java.lang.OutOfMemoryError: PermGen space error when running several BASE application in parallel on one tomcat server.
Change History (5)
comment:1 by , 18 years ago
Status: | new → assigned |
---|
comment:2 by , 18 years ago
Description: | modified (diff) |
---|
comment:3 by , 18 years ago
I am now running tomcat with CATALINA_OPTS="-server -Xmx500m -XX:MaxPermSize=256m" That is increasing memory pool for tomcat. The OutOfMemory link above is targeting another memory problem than the one we have here. The third option above is not usable for me (Jari) since I run different version of BASE.
So, lets hope this is stable.
comment:4 by , 18 years ago
The third options is a bit risky if the libraries you move to a shared directory uses singleton classes. You will end up with one instance for the entire Tomcat server instead of one for each web application. If the singleton is used to hold, for example, configuration values (the BASE 2 core contains such classes) these must be the same for all web applications. It could lead to all kinds of strange errors unless you know what you are doing.
comment:5 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Increasing the MaxPermSize solves the problem. Our server is still running since the incease.
I am currently looking into these items (found searching the web) for a solution