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 3, 2019
1 parent baa4098 commit cc077e0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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 to Java 11 (LTS) and later](cr/java11plus.png) [Support for low-overhead heap profiling (JEP 331)](#support-for-low-overhead-heap-profiling)![End of content that applies only to Java 11 (LTS)](cr/java_close_lts.png)
- [Removal of -Xdiagnosticscollector option](#removal-of-xdiagnosticscollector-option)


Expand Down Expand Up @@ -69,6 +70,16 @@ For compatibility, the [`-XX:OnOutOfMemoryError`](xxonoutofmemoryerror.md) OpenJ

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.

### ![Start of content that applies to Java 11 (LTS) and later](cr/java11plus.png) Support for low-overhead heap profiling

[JEP 331](http://openjdk.java.net/jeps/331) provides a mechanism for sampling Java heap allocations with a low overhead via
the JVM Tool 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 cc077e0

Please sign in to comment.