Profile Image
noga.knaz

Can't understand what causes the jvm to crash

I launch a Java application (that was compiled with oracle jdk 1.8_201) on Tomcat and Openshift (that uses open JDK 11).

Very often when sending a URL request to the web application, either the pod crashes or freezes.

The memory definition does not seem to be the problem (about 250 mega byte are still free).

I can't understand from [file] hs_err_pidxxx.log what the cause of the crash is and I would appreciate any thoughts that you have regarding the cause of the crash.

 

Report URL - https://fastthread.io/my-thread-report.jsp?p=c2hhcmVkLzIwMjMvMDgvMjAvaHMtbG9nLnR4dC0tOS0yOC0zMw==

  • jvmcrashing

  • tomcat

  • openshift

  • podcrashesorfreezes

  • hs-err-pid

Please Sign In or to post your comment or answer

Profile Image

Mahesh

Hello,

 

I have reviewed your hs_err_pid report but couldn't find any issues.

 

To comprehensively diagnose potential problems, consider utilizing the open source yCrash script which will capture 360-degree application level artifacts (like GC logs, 3 snapshots of thread dumps, heap dumps) and system level artifacts (like top, top -H, netstat, vmstat, iostat, dmesg, diskusage, kernel parameters...). Once you have these data, either you can manually analyze them or upload it to yCrash tool. Tool analyzes all these dataset and generates an instant root cause analysis report.

 

Would you be willing to execute the yCrash script before the pod crashes? Kubernetes offers lifecycle hooks that allow for operations before the pod crashes. You can leverage the preStop hook to perform actions just before the pod crashes. An example of using the preStop hook to capture artifacts before a pod restart can be found here:

https://docs.ycrash.io/ycrash-agent/kubernetes/prestop-hook.html#capture-artifacts-before-pod-restarts

 

To find all the configuration parameters that are available, please consult the documentation link provided below:

 

https://docs.ycrash.io/ycrash-agent/all-agent-arguments.html#all-arguments

 

Profile Image

noga.knaz

Thank you for your advice. I work at a secure environment and new to Openshift, so everything takes a really long time. I will try to install the agent and hopefully get more information regarding the crash.

Thank you.

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jvmcrashing

  • tomcat

  • openshift

  • podcrashesorfreezes

  • hs-err-pid