This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
I am using JNI to run some native code from Java. The code runs fine in Windows XP system. When i port the code to Linux and try running it there, It runs perfectly for 2-3 times. And after that it crashes. This crash is so random that it crashes the first time sometimes. Sometimes it works for 2-3 times and then crashes.
As the code is running fine for some time, the problem may be with the memory.
My Java Memory Arguments are "-Xms 768m -Xmx1024m".
Java Version : 1.6.0_12 and I am running my application in Weblogic 11g.
Every time it crashes, it gives me a JVM crash dump file, from which I am not able to decode the problem.
Here is the latest crash dump file:
Can anyone help me to locate the reason for these random crashes ? Is the problem with Heap Memory as some of the statics say the memory space is 99% used ?