java.lang.OutOfMemoryError: PermGen space

OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum.

java.lang.OutOfMemoryError: PermGen space

Postby ilagi » Thu Jul 22, 2010 4:53 pm

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
ilagi
Junior Boarder
Junior Boarder
 
Posts: 20
Joined: Thu Jul 22, 2010 4:45 pm

Re: java.lang.OutOfMemoryError: PermGen space

Postby jllort » Fri Jul 23, 2010 4:04 pm

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.
jllort
Moderator
Moderator
 
Posts: 1828
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: java.lang.OutOfMemoryError: PermGen space

Postby ilagi » Fri Jul 23, 2010 4:59 pm

Thank you!

I already increased the memory allocation in the run.bat by changing
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m

to

set 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.
ilagi
Junior Boarder
Junior Boarder
 
Posts: 20
Joined: Thu Jul 22, 2010 4:45 pm

Re: java.lang.OutOfMemoryError: PermGen space

Postby jllort » Fri Jul 23, 2010 6:35 pm

you can double it -Xmx512m too ( 1024 )
jllort
Moderator
Moderator
 
Posts: 1828
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: java.lang.OutOfMemoryError: PermGen space

Postby weezer316 » Wed Jul 28, 2010 8:03 am

Hi,

I installed jrockit from oracle as my virtual machine to solve that problem. Far better garbage colllection too :-)
weezer316
Senior Boarder
Senior Boarder
 
Posts: 43
Joined: Thu Jun 03, 2010 3:55 pm

Re: java.lang.OutOfMemoryError: PermGen space

Postby jllort » Wed Jul 28, 2010 1:22 pm

I'm interested on /jrockit

could you put here some usage example here ?
jllort
Moderator
Moderator
 
Posts: 1828
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: java.lang.OutOfMemoryError: PermGen space

Postby weezer316 » Thu Jul 29, 2010 8:01 am

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
weezer316
Senior Boarder
Senior Boarder
 
Posts: 43
Joined: Thu Jun 03, 2010 3:55 pm

Re: java.lang.OutOfMemoryError: PermGen space

Postby ilagi » Thu Jul 29, 2010 7:50 pm

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.
ilagi
Junior Boarder
Junior Boarder
 
Posts: 20
Joined: Thu Jul 22, 2010 4:45 pm


Return to Configuration

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron