Generate heap dump from ui fail with java 11

Description

Doing a jvm dump with the gs-ui using 14.5 version fails.

Steps to reproduce:
1. right click on process
2. choose "Generate dump..."
3. choose a file location
4. tick "JVM Heap Dump"
5. click "Generate" button

After the dump is finished see "failed-dump-processors.txt" :
com.gigaspaces.internal.dump.InternalDumpProcessorFailedException: heap: Failed to generate heap dump
at com.gigaspaces.internal.dump.heap.HeapDumpProcessor.process(HeapDumpProcessor.java:129)
at com.gigaspaces.internal.dump.InternalSimpleDumpGenerator.generateDump(InternalSimpleDumpGenerator.java:78)
at com.gigaspaces.internal.dump.InternalDumpHelper.generateDump(InternalDumpHelper.java:55)
at com.gigaspaces.grid.gsc.GSCImpl.generateDump(GSCImpl.java:604)
at com.gigaspaces.internal.dump.InternalDumpProviderGigaspacesMethodinternalInvoke2.internalInvoke(Unknown Source)
at com.gigaspaces.internal.reflection.fast.AbstractMethod.invoke(AbstractMethod.java:45)
at com.gigaspaces.lrmi.LRMIRuntime.invoked(LRMIRuntime.java:441)
at com.gigaspaces.lrmi.nio.Pivot.consumeAndHandleRequest(Pivot.java:494)
at com.gigaspaces.lrmi.nio.Pivot.handleRequest(Pivot.java:572)
at com.gigaspaces.lrmi.nio.Pivot$ChannelEntryTask.run(Pivot.java:173)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalAccessException: class com.gigaspaces.internal.dump.heap.HeapDumpProcessor cannot access class com.sun.management.internal.HotSpotDiagnostic (in module jdk.management) because module jdk.management does not export com.sun.management.internal to unnamed module @7e11ab3d
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
at java.base/java.lang.reflect.Method.invoke(Method.java:558)
at com.gigaspaces.internal.dump.heap.HeapDumpProcessor.process(HeapDumpProcessor.java:125)
... 12 more

Customer is using zulu 11.2+3 (openJDK 11) jvm.

openJDK define the class com.sun.management.internal.HotSpotDiagnostic but I guess in java 11 it is not anymore allowed to be used directly.

Customer think triggering the heapdump over JMX via the HotSpotDiagnosticMXBean should still work in java 11.

Workaround

None

Acceptance Test

None

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

12775

Fix versions

None

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All
Configure