Page 1 of 1

Java heap space

PostPosted:Tue May 26, 2015 8:46 am
by Aku
Hello together,
i get a lot of exceptions with the error: "Java heap space"
heapspace.png
heapspace.png (97.21 KiB) Viewed 3790 times
System information:
os.png
os.png (29.32 KiB) Viewed 3790 times
setenv.bat content:
content.png
content.png (104.27 KiB) Viewed 3790 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é

Re: Java heap space

PostPosted:Wed May 27, 2015 7:03 am
by jllort
how many memory you got on the server and what is free before starting openkm ( also post here your setenv.bat )

Re: Java heap space

PostPosted:Wed May 27, 2015 7:55 am
by Aku
Error:
heapspace.png
heapspace.png (223.35 KiB) Viewed 3780 times
Here the sevenv.bat :
(378 Bytes) Downloaded 229 times
Taskmanager without OpenKM:
taskmanager2.png
taskmanager2.png (87.29 KiB) Viewed 3780 times
Taskmanager with OpenKM by "Heap-Space" Error:
taskmanager.png
taskmanager.png (97.69 KiB) Viewed 3780 times
Taskmanager Prozess with openKM:
prozess.png
prozess.png (31.55 KiB) Viewed 3780 times

André

Re: Java heap space

PostPosted:Fri May 29, 2015 5:45 pm
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 ).

Re: Java heap space

PostPosted:Mon Nov 09, 2015 9:30 pm
by kknd
I have the same problem , same server , same cofig, and if will configure to more then 1024 , the server crash

any solution ?

Re: Java heap space

PostPosted:Mon Nov 09, 2015 9:40 pm
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

Re: Java heap space

PostPosted:Wed Nov 11, 2015 12:53 pm
by jllort
Thanks for sharing, we will take note about this point.