Page 1 of 1
java.lang.OutOfMemoryError: PermGen space
PostPosted:Thu Jul 22, 2010 4:53 pm
by ilagi
Hi,
I have a fresh OpenKM 4.1 installed on Windows 2003 Server and I'm the only user on it. When as an admin I check through the admin section (reports and stuff) after a while the Admin pages come up "The page cannot be displayed" and the server has a "java.lang.OutOfMemoryError: PermGen space" error message.
Any idea how to solve it?
Thanks
Ilagi
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Fri Jul 23, 2010 4:04 pm
by jllort
You need more memory, how much you've got in this server ?
modify run.bat or set environment variable JAVA_OPTS with values -XX:PermSize=64m -XX:MaxPermSize=128m
I recommend you take a look at google looking for "java jvm memory params" it's not trivial.
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Fri Jul 23, 2010 4:59 pm
by ilagi
Thank you!
I already increased the memory allocation in the run.bat by changing
Code: Select allset JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
to
Code: Select allset JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m
but I didn't know that I can set PermSize too. I have set it to -XX:PermSize=64m -XX:MaxPermSize=128m and I tried to stress it and so far no out of memory error message.
Thanks again.
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Fri Jul 23, 2010 6:35 pm
by jllort
you can double it -Xmx512m too ( 1024 )
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Wed Jul 28, 2010 8:03 am
by weezer316
Hi,
I installed jrockit from oracle as my virtual machine to solve that problem. Far better garbage colllection too

Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Wed Jul 28, 2010 1:22 pm
by jllort
I'm interested on /jrockit
could you put here some usage example here ?
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Thu Jul 29, 2010 8:01 am
by weezer316
Hi,
I just install jRockit as my JVM rather than the Sun JVM. I point my JAVA_HOME variable to the JVM path, set eclipse up using this and that it.
It can be downloaded from here:
http://www.oracle.com/technology/softwa ... index.html
Wheeler
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Thu Jul 29, 2010 7:50 pm
by ilagi
Thanks!
So far my issue went away by increasing the perm memory limit, but if we get more load it might appear again and then I will try your solution of changing JVM.
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Wed Sep 21, 2011 11:43 am
by Manas Jha
can you please tell me the exact configuration i should write in run.bat because i am totaly new to this platform. I addition to that can you please tell me the settings to change the reposirtory folder location. I am using OpenKM 5.1.6 version
Re: java.lang.OutOfMemoryError: PermGen space
PostPosted:Fri Sep 23, 2011 4:20 pm
by jllort
Take a look on run.sh - at starting - there're JAVA_OPTS= you must configure run.bat with same parameters.