I am getting the following error while executing the program.
And this is not always happening. The code contains some complex calculations with a large volume of data
It may not a problem from your JVM; If you're using native code in your Java code, you should confirm the parameter list of Java function is consistent with your native function.