Tag Archives: linux

jconsole fatal startup error

Upon starting jconsole I was greeted by the following error:


eimert@EIM ~ $ jconsole
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f572fdf0009, pid=31852, tid=31924

It seems jconsole is running on Java 9 while IntelliJ is using Java 8. Here’s how to fix it.


eimert@EIM ~ $ jconsole
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f572fdf0009, pid=31852, tid=31924
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libjava.so+0x1d009] JNU_GetEnv+0x19
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/eimert/hs_err_pid31852.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Afgebroken

jconsole is a symlink to /etc/alternatives/jconsole:

eimert@EIM ~ $ which jconsole
/usr/bin/jconsole
eimert@EIM ~ $ ll /usr/bin/jconsole
lrwxrwxrwx 1 root root 26 apr 6 2018 /usr/bin/jconsole -> /etc/alternatives/jconsole

Fixed that startup error by using jconsole from java 8:

eimert@EIM ~ $ sudo update-alternatives --config jconsole
Er zijn 2 beschikbare keuzemogelijkheden voor het alternatief jconsole (dat voorziet in /usr/bin/jconsole).

Keuze Pad Prioriteit Status
————————————————————
0 /usr/lib/jvm/java-9-openjdk-amd64/bin/jconsole 1091 automatische modus
* 1 /usr/lib/jvm/java-8-openjdk-amd64/bin/jconsole 1081 handmatige modus
2 /usr/lib/jvm/java-9-openjdk-amd64/bin/jconsole 1091 handmatige modus

Druk om de huidige keuze[*] te behouden, of typ een keuzenummer in:

jconsole boots:

Advertisements