Failure message: Error: temporary az_mreserve(CodeCache) failed: Bad address at (0xNNNNNN for 0xNNNNNN bytes)
Failure message: Error: temporary az_mreserve(OopTable) failed: Bad address at (0xNNNNNN for 0xNNNNNN bytes)
Virtual address space collisions when native launch applications allocate memory where Azul Zulu Prime JVM allocates certain internal structures like the CodeCache and the OopTable.
Solution:
If any of the reported messages are encountered, native launch applications should try to LD_PRELOAD libc_hooks3.so
or call JNI_CreateJavaVM early on in the main function before calling routines that may allocate memory.
libc_hooks3.so
is available in $JAVA_ HOME/etc/zing/lib/
.