尝试运行 Minecraft 服务器时 JRE 中出现段错误

问题描述 投票:0回答:1

我一直在运行 Paper (1.21.3) jar,尝试在 Oracle Linux Server 8.10. (29G RAM) 上托管 Minecraft 服务器。每次我运行该 jar 时,都会成功生成世界,然后要么

  1. 生成世界后立即给出SIGSEGV错误和核心转储
  2. 坐下来,直到有玩家加入,然后
  3. 给出 SIGSEGV 错误和核心转储

我运行 .jar 所采取的步骤:

    wget【纸质版】
  1. (尝试过 1.21.3 不稳定版本以及 1.21.1 稳定版本)
  2. java -Xms4G -Xmx4G -jar server.jar nogui
  3. (尝试过从 3G 到 20G 的各种 -Xms。)

以下是我收到的完整错误消息:

[22:29:49 INFO]: Done (48.297s)! For help, type "help" [22:29:49 INFO]: Timings Reset [22:33:07 INFO]: UUID of player bowosc is 2fdf21ec-0388-4f50-adf6-73b3c4d7m0f2 [22:33:08 INFO]: bowosc joined the game [22:33:08 INFO]: bowosc[/MYIP] logged in with entity id 33 at ([world]3.5, 69.0, 5.5) # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f162b4b3ecf, pid=17317, tid=17359 # # JRE version: Java(TM) SE Runtime Environment (23.0.1+11) (build 23.0.1+11-39) # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0.1+11-39, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) # Problematic frame: # C [spark-cf69683bbb7-libasyncProfiler.so.tmp+0x6ecf] NMethod::isNMethod()+0x1f # # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e" (or dumping to /home/opc/core.17317) # # An error report file with more information is saved as: # /home/opc/hs_err_pid17317.log [254.152s][warning][os] Loading hsdis library failed # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # Aborted (core dumped)

为什么会出现这种情况?我怎样才能阻止它发生?

java ubuntu server segmentation-fault minecraft
1个回答
0
投票
通过切换到 Java 21 解决了我的问题。谢谢,Rishaan!

© www.soinside.com 2019 - 2024. All rights reserved.