Page 1 of 1
Openkm constantly stops working
PostPosted:Sun Oct 13, 2019 9:12 am
by mamad
Hi guys
I have openkm 6.3.7 community edition which is hosted on a Debian server.
I have a problem on openkm which is really annoying me
some times ( maybe once or twice a week or some times once a month ) openkm wont be load when i enter the url ( i cant see login or any other pages )
But today, surprisingly, it happened twice !
I always fix this problem by restarting tomcat service but i want to know the reason of that.
Re: Openkm constantly stopped
PostPosted:Sun Oct 13, 2019 9:21 am
by mamad
I zipped all the log files of today into one zip file and send it as attachment of this reply .(
(211.82 KiB) Downloaded 361 times
)
The zipped file contains the following files :
catalina.2019-10-13.log
localhost.2019-10-13.log
localhost_access_log.2019-10-13.txt
I would be grateful if you could help me resolve this issue.
Thanks in advance
Re: Openkm constantly stopped
PostPosted:Sun Oct 13, 2019 4:13 pm
by jllort
When the application is killed by some reason will not be shown in the logs. Must configure heap dump in the setenv.sh or setenv.bat for dump creation and then open to check the reason why the tomcat was killed ( usually memory heap ). Add the next configuration parameter:
Code: Select allJAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$CATALINA_HOME"
Re: Openkm constantly stopped
PostPosted:Wed Oct 23, 2019 8:16 am
by mamad
i added that line to the end of setenv.sh and started tomcat. after about an hour openkm stopped again ( it failed to load the login page )
After that a file named java_pid27219.hprf was created in the catalina home path.
The size of this file is too large ( 1.2 GB) and i cant open it with any text editor.
So, what to do now ??
Re: Openkm constantly stops working
PostPosted:Sat Oct 26, 2019 9:24 am
by jllort
Look in google for "open jvm dump". There're several tools for it, in past, we used JAVA VisualVM. Currently, we are using jProfiler tool ( in both cases these are complex tools an require some time to take control on how they work ).