Hide Forgot
Description of problem: The option ExitOnOutOfMemoryError is no longer available since upgrading from openjdk 1.7.0_131 to 1.7.0_141. There is no clue from the release notes why this option has been removed. On the other hand, the option is available in java-1.8.0-openjdk-devel.x86_64 Version-Release number of selected component (if applicable): Openjdk 1.7.0_141 How reproducible: By installing RPM packages as follows: yum install java-1.7.0-openjdk-devel.x86_64 java -XX:+ExitOnOutOfMemoryError -version Unrecognized VM option 'ExitOnOutOfMemoryError' Expected results: java version "1.7.0_141" Additional info: The option works with OpenJDK8: yum install java-1.8.0-openjdk-devel.x86_64 java -XX:+ExitOnOutOfMemoryError -version java version "1.8.0_60"
Andrew, do you know if this is intentional?
It probably can be returned, but only as rpm specific patch (==not recommended) as: $ java -X -Xmixed mixed mode execution (default) ... -XshowSettings:locale show all locale related settings and continue The -X options are non-standard and subject to change without notice. I tasys it all.... Sorry.
There seems to be some confusion here. I can see no evidence that -XX:+ExitOnOutOfMemoryError has ever been present in java-1.7.0-openjdk. It was added to OpenJDK 8 in u92: 8138745: Implement ExitOnOutOfMemory and CrashOnOutOfMemory in HotSpot Reviewed-by: dholmes Contributed-by: cheleswer.sahu@oracle.com https://bugs.openjdk.java.net/browse/JDK-8138745 It has never been backported to OpenJDK 7. The bug confusingly lists it as being in 7u101 and 7u111, but this is a reference to Oracle's proprietary JDK updates (java-1.7.0-oracle) 8138745 is a fairly simple fix, so we could consider backporting it as well. Generally, we've only backported changes going into 8u that have been part of security updates (odd-numbered releases such as 8u91 and 8u141), and not feature updates such as 8u92. I do have an ongoing TODO to look over the Oracle 7u updates for other changes, but it's lower priority than the security updates and ongoing RHEL requests for fixes for both 7 & 8. Francesco, would it make it easier for you to have this option available in OpenJDK 7?
Scheduled for inclusion in the next upstream release, given its already in the proprietary 7 version and has no effect unless one of the new options is enabled.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0944