Hi,

You need to set the perm size of your java virtual machine.  In Resin 3.1 do
this:

<jvm-arg>-XX:MaxPermSize=512m</jvm-arg>

S.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jan Kriesten
Sent: 05 July 2007 13:16
To: General Discussion for the Resin application server
Subject: [Resin-interest] class reloading / out-of-memory



hi,

i have the following out-of-memory error when changing a class file of a
web-app
and the web-app is re-inited:

---8<---
java.lang.OutOfMemoryError: PermGen space
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
     at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1329)
     at
com.caucho.loader.DynamicClassLoader.findClass(DynamicClassLoader.java:1199)
     at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1119)
     at
com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1068)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
---8<---

this regularly happens after the app is reloaded for the 5th or 6th time.

the admin service works without a flaw and indicates that there should be
enough
free memory:

Total memory:   122.42Meg
Free memory:    56.45Meg

any hints where to look?

i'm using resin 3.1.1 and jdk 1.6

best regards, --- jan.




_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to