This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE Dev (Build 201110100600) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b18 System: Linux version 2.6.38-11-generic running on amd64; UTF-8; en_US (nb) Heap dump on OOME is disabled with JDK 1.7 It seems to be that the root of the problem is following part of./platform/lib/nbexec if "${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError > /dev/null 2>&1 ; then jargs="$jargs -XX:+HeapDumpOnOutOfMemoryError" if echo $jargs | grep -v -- "-XX:HeapDumpPath=" > /dev/null ; then jargs="$jargs -XX:HeapDumpPath=\"${userdir}/var/log/heapdump.hprof\"" fi fi on jdk 6 return value of ${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError is 0 but on jdk 7 the return value (at least on my box) is 130
Starting with JDK 7 the return value of "java" process indicates error (returns a non-zero value) even if the parameters specified for "java" are correct and only no class is specified for the execution. > on jdk 6 return value of ${jdkhome}/bin/java" -XX:+HeapDumpOnOutOfMemoryError > is 0 but on jdk 7 the return value (at least on my box) is 130 Unfortunately on my linux box it is not a quite nice 130, but simply 1 (the same 1 as with specifying an incorrect nonexisting parameter).
http://hg.netbeans.org/core-main/rev/a556dd89997c
Integrated into 'main-golden', will be available in build *201110240600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a556dd89997c User: Antonin Nebuzelsky <anebuzelsky@netbeans.org> Log: #203587: IDE is run with Heap dump on OOME disabled (starting java with only a valid XX parameter without specifying a class to run does not return exit code 0 anymore with Java 7)
verified