Java process core dump

Get java process PID:

ps -ef|grep java # java process pid
Run debugger:
sudo gdb —pid=XXXX
Save to a file and quit from gdb:
gcore /tmp/jvm.core
detach
quit