检测到致命错误 libio_micrometer_shaded_netty_transport_native_epoll_x86_64

A fatal error has been detected libio_micrometer_shaded_netty_transport_native_epoll_x86_64

我的应用程序在 Metrics.addRegistry(new StatsdMeterRegistry(configs, clock)

线上停止并损坏

环境

我想有些原生库丢失了。请帮助我解决问题。

部分日志:

Stack: [0x00007f310b6ef000,0x00007f310b7efad8], sp=0x00007f310b7ea468, free space=1005k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x0000000000003fd6 C [libio_micrometer_shaded_netty_transport_native_epoll_x86_641883406040202622072.so+0xbd07] netty_jni_util_JNI_OnLoad+0x67 C [libjava.so+0xfc7a] Java_java_lang_ClassLoader_00024NativeLibrary_load0+0xba j java.lang.ClassLoader$NativeLibrary.load0(Ljava/lang/String;Z)Z+0 java.base@11.0.11 j java.lang.ClassLoader$NativeLibrary.load()Z+53 java.base@11.0.11 j java.lang.ClassLoader$NativeLibrary.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)Z+216 java.base@11.0.11 j java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+46 java.base@11.0.11 j java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+70 java.base@11.0.11 j java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57 java.base@11.0.11 j java.lang.System.load(Ljava/lang/String;)V+7 java.base@11.0.11 j io.micrometer.shaded.io.netty.util.internal.NativeLibraryUtil.loadLibrary(Ljava/lang/String;Z)V+5 v ~StubRoutines::call_stub V [libjvm.so+0x817ee3]

errors full trace can be found here

我将 micrometer 版本更新为 1.9.0,将 netty-all 版本更新为 4.1.77 - 它解决了问题!多亏了释善!

full details can be found there