• java.lang.OutOfMemoryError: PermGen space

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
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. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #5935  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
 #5942  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.
 #5943  by ilagi
 
Thank you!

I already increased the memory allocation in the run.bat by changing
Code: Select all
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
to
Code: Select all
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.
 #6004  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.
 #12237  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
 #12279  by jllort
 
Take a look on run.sh - at starting - there're JAVA_OPTS= you must configure run.bat with same parameters.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.