https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html#:~:text=By default the heap dump,-XX%3AHeapDumpPath%3D option.
KAFKA_HEAP_OPTS+=" -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data/kafka_heapdump.hprof"
KAFKA_HEAP_OPTS+=" -XX:+ExitOnOutOfMemoryError -XX:ErrorFile=/data/kafka_error.log"
MyEngine\\..[0-9a-zA-Z._-]*.hello(\\.world)?
MyEngine.something.something.hello.world
and MyEngine.ckjekrjek.kjekjre.hello
jenv
is much more useful than sdkman.
https://sdkman.io/ - Switching jdks. Another good option and more preferable is jenv
- you can download different jvms and then link to jenv and switch to them manually - many things are unavailable with sdkman
# also an option
export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_14_HOME=$(/usr/libexec/java_home -v14)
export JAVA_11_HOME=$(/usr/libexec/java_home -v11)
alias java8='export JAVA_HOME=$JAVA_8_HOME'
alias java14='export JAVA_HOME=$JAVA_14_HOME'
alias java11='export JAVA_HOME=$JAVA_11_HOME'