Requesting information for diagnosing fatal error with JVMCI #6216
Replies: 10 comments 2 replies
-
This failure is from the creation of a new isolate for compilation by the JIT so the error message means we couldn't allocate the storage required for a new isolate. Graal is packaged into a shared library in this configuration. The error code suggests that there isn't enough memory available but it's hard to know since we just get the error code without any details. Can you get an hs_err for us? That would give us a clearer sense of the state of memory. To work around this you can delay shutdown of idle isolates indefinitely using As far as the -1000000009 error code, if we really are short on memory then something else might have gone wrong with allocation in HotSpot leading to that code. |
Beta Was this translation helpful? Give feedback.
-
To add to Tom's info, here's where the Which in turn is most likely coming from here: As Tom states, having the hs-err file would help diagnose further. |
Beta Was this translation helpful? Give feedback.
-
In the mean time, I have opened https://bugs.openjdk.org/browse/JDK-8305932 to try to avoid crashing in such scenarios. |
Beta Was this translation helpful? Give feedback.
-
@tkrodriguez Thanks for your response. I tried adding the It took a while but I was able to grab something of an hs_err log file which I've attached. I think it is probably corrupted as I had to pull it out of AWS Cloudwatch (which is remarkably unhelpful) as we're running our code in AWS ECS (I used -XX:ErrorFile=/dev/stdout). If you need me to find a way to get a better file, I can look into that. |
Beta Was this translation helpful? Give feedback.
-
Here's a better hs_err file. |
Beta Was this translation helpful? Give feedback.
-
@christianhaeubl what other |
Beta Was this translation helpful? Give feedback.
-
This indeed looks like a crash in the SVM GC. For diagnosing, we would need the |
Beta Was this translation helpful? Give feedback.
-
@dougxc @christianhaeubl Here's some new crash files. hs_err_pid1_libjvmci_de131324db024af9a2edcbce32588880.log These look like the VM just ran out of memory. I haven't seen any other crashes from other errors. If that happens I'll add the files at that point. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the crash logs. @michaeljohnalbers : is there anything running on the machine that can cause large spikes in memory usage so that the operating system has a reason to deny the allocation? |
Beta Was this translation helpful? Give feedback.
-
Here's an error log from a non-memory crash. There was no JVMCI error log produced. |
Beta Was this translation helpful? Give feedback.
-
In one of our apps we're seeing frequent fatal errors coming from the JVM. They mostly look like this
Unfortunately we don't have access to the core file or hs_err_pid file as we're running the app in a Docker container within AWS ECS.
These crashes are happening after our app has been running for quite a while, in many cases several hours. We've tried a few different things to stop these, but none have worked (increasing the JVM heap size, reducing the number of
Context
objects we have instantiated, attempting to lower the overall memory footprint of the process). Our ECS instances appear to have quite a bit of free memory (20+GB) when these crashes happen and the network and CPU load is not overwhelming either.Our app is a Java web-based app using Dropwizard. We also are using DuckDB as an in-memory database which is accessed via JNI calls. And, we're using GraalVM specifically for the polyglot capabilities, namely the ability to run some custom Javascript.
In order to help determine the cause of this we're hoping that you can provide any information about why these specific error may be happening.
Additionally, if you could provide answers to the following questions we would greatly appreciate it.
JNI_ENOMEM
? If so, is this function trying to use JVM heap memory or off-heap memory?Thank you for any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions