jvm-crash

insufficient memory for the Java Runtime Environment to continue though RAM is showing 6 GB free space

☆樱花仙子☆ 提交于 2019-12-07 01:24:47
问题 While running java application I'm getting the following memory dump. After installing java 8(with java 7 application was working before) I started getting the below error. I'm using 16 GB RAM and in task manager when I checked (while application was starting)around 6 GB RAM was free. Could some one please help what could be the issue? # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 472736 bytes for Chunk:

JVM crashing while writing to XLSX file( POI)

南楼画角 提交于 2019-12-06 06:09:53
问题 JVM is crashing while trying to write to the .xlsx file. I am using POI(XSSF) for the same. The error location point in code is the write method--> workBook.write(fileOutputStream); On Console I get.. A fatal error has been detected by the Java Runtime Environment: SIGBUS (0x7) at pc=0xb68d77f3, pid=14653, tid=1849355120 JRE version: 7.0_04-b20 Java VM: Java HotSpot(TM) Server VM (23.0-b21 mixed mode linux-x86 ) Problematic frame: C [libzip.so+0x47f3] newEntry+0x73 Failed to write core dump.

It is posible to write hs_err_pid*.log in a specific directory (different than the class directory) when java virtual machine crash?

拥有回忆 提交于 2019-12-05 22:09:02
When a java application crash outside the java virtual machine generate a log file hs_err_pidXXXX.log in the same directory than the class running. It's posible generate this file in a different directory? My client want to change to read only this directory, but i don't like to lose this files. I think the -XX:ErrorFile JVM arg will work. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5107646 and http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=5515dc81f6e66149b8cd377f59bf1?bug_id=4872551 for details http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

VerifyError: Uninitialized object exists on backward branch / JVM Spec 4.10.2.4

。_饼干妹妹 提交于 2019-12-05 08:20:59
问题 The JVM Spec 4.10.2.4 version 7, last paragraph, says A valid instruction sequence must not have an uninitialized object on the operand stack or in a local variable at the target of a backwards branch if the special type of the uninitialized object is merged with a special type other than itself Here's an example rejected by the verifier - I suspect that it should be accepted: public scala.Tuple2<scala.runtime.Null$, scala.runtime.Null$> apply(boolean); flags: ACC_PUBLIC Code: stack=4, locals

JVM crashing while writing to XLSX file( POI)

旧街凉风 提交于 2019-12-04 09:06:23
JVM is crashing while trying to write to the .xlsx file. I am using POI(XSSF) for the same. The error location point in code is the write method--> workBook.write(fileOutputStream); On Console I get.. A fatal error has been detected by the Java Runtime Environment: SIGBUS (0x7) at pc=0xb68d77f3, pid=14653, tid=1849355120 JRE version: 7.0_04-b20 Java VM: Java HotSpot(TM) Server VM (23.0-b21 mixed mode linux-x86 ) Problematic frame: C [libzip.so+0x47f3] newEntry+0x73 Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java

Java : how to check current Perm / PermGen Size?

梦想与她 提交于 2019-12-02 18:44:30
Yesterday when I was running the WebLogic Application Server 11g installer, I encountered a OutOfMemory error, so I Googled for the answer: java -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m -jar wls1032_generic.jar Everything worked :) However, when I think twice about the solution, I might have made a mistake: How could I know the current settings of those? I certainly need to check their values before overriding them, right? Any thoughts? Related link: People in another thread on SO suggested trial and error approach, which is not ideal. Many thanks in advance. You can check the

How to fix Eclipse Java Virtual Machine Launcher Error?

丶灬走出姿态 提交于 2019-12-01 08:41:14
So like the title says, Im having an issue with eclipse JVM launcher. Last night, everything was working fine, as far as I know, nothing at all has changed on my pc since then. However, I woke up this morning to find that when I run any of my projects in eclipse I recive this error: Java Virtual Machine Launcher- Error: could not open C:\Program Files\Java\jre1.8.0_60\lib\amd6jvm.cfg I have already verified the integrity of my Path variable, ( C:\Program Files\Java\jdk1.8.0_65\bin ) Now at this point, you may notice, my jdk is on version 65. So is my JRE and java installation. I dont

Unrecognized VM option 'UseParNewGC' , Error: Could not create the Java Virtual Machine

Deadly 提交于 2019-12-01 02:53:58
I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+UseParNewGC as the reference point of the error what would this need to be changed to in order to get a JVM server start with java 10 versus the java 8 settings I have shown? The line of code causing the error reference is: set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 Peter Lawrey This collectors was deprecated in

Unrecognized VM option 'UseParNewGC' , Error: Could not create the Java Virtual Machine

跟風遠走 提交于 2019-11-30 22:25:09
问题 I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+UseParNewGC as the reference point of the error what would this need to be changed to in order to get a JVM server start with java 10 versus the java 8 settings I have shown? The line of code causing the error reference is: set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX

Tool for debugging hangs in java application

坚强是说给别人听的谎言 提交于 2019-11-30 08:41:09
I've got a java application that half the time just hangs, and the other half the JVM crashes. Is there a tool I can use to see what's going on that makes it hang and/or crash? I'm using CentOS 5.6 There are two different cases. Application crash: Was that an OOM? NPE? What was the exception? If there was jvm crash you will see hs_err_.log ( http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf ) Looking at the file you may see if your own JNI caused a crash or JVM bug. Application Hang: I would start with visualvm or jstat (both are part of JDK). You can see current state of threads and check