Skip to content

Commit

Permalink
Add content for JEP 331
Browse files Browse the repository at this point in the history
OpenJ9 now provides an implementation of JEP 331, which
enables heap profiling with minimal resources. There are
a couple of restrictions, which are documented.

Closes: #284

Signed-off-by: Sue Chaplain <[email protected]>
  • Loading branch information
SueChaplain committed Jul 2, 2019
1 parent baa4098 commit 8cadbfa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/version0.15.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- ![Start of content that applies only to Java 11 (LTS)](cr/java11.png) [ChaCha20 algorithm support for OpenSSL](#chacha20-algorithm-support-for-openssl)![End of content that applies only to Java 11 (LTS)](cr/java_close_lts.png)
- [Support for OpenJDK HotSpot options](#support-for-openjdk-hotspot-options)
- [Support for Transparent HugePage](#support-for-transparent-hugepage)
- ![Start of content that applies only to Java 11 (LTS)](cr/java11.png) [Support for low-overhead heap profiling (JEP 331)](#support-for-low-overhead-heap-profiling)
- [Removal of -Xdiagnosticscollector option](#removal-of-xdiagnosticscollector-option)


Expand Down Expand Up @@ -65,10 +66,19 @@ The ChaCha20 and ChaCha20-Poly1305 algorithms can now use OpenSSL on Java 11. Fo

For compatibility, the [`-XX:OnOutOfMemoryError`](xxonoutofmemoryerror.md) OpenJDK Hotspot option is now supported by OpenJ9.

### Support for Transparent HugePage
### ![Start of content that applies only to Java 11 (LTS)](cr/java11.png) Support for Transparent HugePage

The VM now supports the allocation of huge pages on Linux when you use the `madvise` (`/sys/kernel/mm/transparent_hugepage/enabled`) setting. To enable this feature, set [`-XX:+TransparentHugePage`](xxtransparenthugepage.md) on the command line when you start your application. This option is currently not enabled by default.

### Support for low-overhead heap profiling

[JEP 331](http://openjdk.java.net/jeps/331) provides a mechanism for sampling Java heap allocations with minimal resources, which can be achieved by using the JVM Tools Interface (JVMTI).

<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> **Restrictions:** JEP 331 is implemented for OpenJ9 with the following limitations:

- The `balanced` and `metronome` garbage collection policies are not supported.
- The changes might not be compatible with the Health Center agent, which uses the same sampling interval.

### Removal of -Xdiagnosticscollector option
This option was redundant and has now been removed. If you try to use this option on the command line, the VM outputs this error message:

Expand Down

0 comments on commit 8cadbfa

Please sign in to comment.