JoshuaJeong / nhin-d

Automatically exported from code.google.com/p/nhin-d
0 stars 0 forks source link

config-ui/config crashes with java.lang.OutOfMemoryError: PermGen space #160

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Following the steps described at
http://wiki.directproject.org/Bare+Metal+Project+-+Java+%28HISP+only%29
I set up the Direct J-RI 1.2 on a generic Ubunto 10.4 server. At the "Configure 
James" step I was able to log into the config interface. However clicking on 
"Agen Settings", "Certificates", etc causes a crash with a 
"java.lang.OutOfMemoryError: PermGen space" exception.

I tried running the Tomcat JVM with the "-XX:PermSize=256M 
-XX:MaxPermSize=256M" options as well as some additional memory management 
keys, but this didn't alleviate the problem. Also increasing the memory of the 
machine didn't resolve anything.

I reproduced the problem on a fresh Ubunto 11.4 server as well. My colleague 
Nate also experienced the problem on his Ubunto server.

After comparing the Direct J-RI 1.2 and 1.1 releases, we found a solution, 
which involved removing the "xd" webapp from Tomcat. After deleting the xd.war 
file, we stopped expriencing the PermGen crash. 

Original issue reported on code.google.com by nikolai....@gmail.com on 5 Aug 2011 at 4:54

GoogleCodeExporter commented 8 years ago
Unless you are using XD endpoints, it is completely unnecessary to run this web 
module in your tomcat instance.

Original comment by gm2...@cerner.com on 5 Aug 2011 at 11:36

GoogleCodeExporter commented 8 years ago
Solution is to ensure Perm gen space is set correctly.

Original comment by gm2...@cerner.com on 8 Sep 2011 at 7:22