• Java heap space

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #39647  by Aku
 
Hello together,
i get a lot of exceptions with the error: "Java heap space"
heapspace.png
heapspace.png (97.21 KiB) Viewed 3460 times
System information:
os.png
os.png (29.32 KiB) Viewed 3460 times
setenv.bat content:
content.png
content.png (104.27 KiB) Viewed 3460 times
Edit: instead -Xmx1536 -> -Xmx1024 (Because the server will not start with higher than 1024.)

After a restart the errors are away for some hours. Then they come back.

André
 #39662  by jllort
 
how many memory you got on the server and what is free before starting openkm ( also post here your setenv.bat )
 #39663  by Aku
 
Error:
heapspace.png
heapspace.png (223.35 KiB) Viewed 3450 times
Here the sevenv.bat :
(378 Bytes) Downloaded 209 times
Taskmanager without OpenKM:
taskmanager2.png
taskmanager2.png (87.29 KiB) Viewed 3450 times
Taskmanager with OpenKM by "Heap-Space" Error:
taskmanager.png
taskmanager.png (97.69 KiB) Viewed 3450 times
Taskmanager Prozess with openKM:
prozess.png
prozess.png (31.55 KiB) Viewed 3450 times

André
 #39685  by jllort
 
Increase -XX:MaxPermSize=512m to -XX:MaxPermSize=1024m and also will be good idea -Xmx1024m to -Xmx2048m ( the last parameter is not for java heap, but 2GB of RAM for OpenKM are always welcome ).
 #40835  by kknd
 
I have the same problem , same server , same cofig, and if will configure to more then 1024 , the server crash

any solution ?
Last edited by kknd on Mon Nov 09, 2015 10:00 pm, edited 2 times in total.
 #40836  by kknd
 
I FOUND THE SOLUTION !!!!

The problem is the version of JAVA in the default pack OpenKM
install the x64 JAVA 1.7 (JDK 7) and
change the default config to directory of JAVA in the setenv.bat to:

rem set JAVA_HOME=C:\Openkm\java
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79

:D :D :D :D :D :D

tag: openkm Java heap space solution
Image
Last edited by kknd on Fri Nov 13, 2015 5:04 am, edited 1 time in total.
 #40841  by jllort
 
Thanks for sharing, we will take note about this point.

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.