@Kwad

Как исправить краш сервера?

Майнкрафт сервер крашится,а точнее Ява вылетает с таким логом:
spoiler
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1048576 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
#   JVM is running with Zero Based Compressed Oops mode in which the Java heap is
#     placed in the first 32GB address space. The Java Heap base address is the
#     maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
#     to set the Java Heap base and to place the Java Heap above 32GB virtual address.
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2852), pid=24600, tid=24623
#
# JRE version: OpenJDK Runtime Environment (11.0.6+10) (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /var/www/srv/core.24600)
#

---------------  S U M M A R Y ------------

Command Line: -Xms1500M -Xmx3000M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=45 -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=50 -XX:G1MaxNewSizePercent=80 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts paper-143.jar nogui

Host: Intel Xeon Processor (Skylake, IBRS), 2 cores, 3G, Ubuntu 18.04.4 LTS
Time: Sat Mar 28 15:54:57 2020 UTC elapsed time: 3611 seconds (0d 1h 0m 11s)

---------------  T H R E A D  ---------------

Current thread (0x00007f5a84001000):  GCTaskThread "GC Thread#1" [stack: 0x00007f5a91cf5000,0x00007f5a91df5000] [id=24623]

Stack: [0x00007f5a91cf5000,0x00007f5a91df5000],  sp=0x00007f5a91df3070,  free space=1016k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xdefa33]
V  [libjvm.so+0xdf06bb]
V  [libjvm.so+0x6508a5]
V  [libjvm.so+0xbc9608]
V  [libjvm.so+0xbc161d]
V  [libjvm.so+0x76ed4f]
V  [libjvm.so+0x76efbe]
V  [libjvm.so+0x77b030]
V  [libjvm.so+0x7f6359]
V  [libjvm.so+0x7f6fb2]
V  [libjvm.so+0x7f7419]
V  [libjvm.so+0x72d4df]
V  [libjvm.so+0x72e13e]
V  [libjvm.so+0x72e45d]
V  [libjvm.so+0x716d0c]
V  [libjvm.so+0x7177d5]
V  [libjvm.so+0x718669]
V  [libjvm.so+0x77018b]
V  [libjvm.so+0x76d528]
V  [libjvm.so+0x77cb87]
V  [libjvm.so+0x77cc98]
V  [libjvm.so+0x738838]
V  [libjvm.so+0x77bacc]
V  [libjvm.so+0x737b32]
V  [libjvm.so+0xe1b4bd]
V  [libjvm.so+0xd7f20a]
V  [libjvm.so+0xbcf1fe]


---------------  P R O C E S S  ---------------

Threads class SMR info:
_java_thread_list=0x00007f5a79141110, length=44, elements={
0x00007f5abc612800, 0x00007f5abc614800, 0x00007f5abc61e000, 0x00007f5abc620000,
0x00007f5abc622000, 0x00007f5abc624000, 0x00007f5abc667000, 0x00007f5abc66c800,
0x00007f5abc8be800, 0x00007f5abce73800, 0x00007f5abd21e800, 0x00007f5abd23d000,
0x00007f5abd23e000, 0x00007f5abc014800, 0x00007f5a78008800, 0x00007f5a78115000,
0x00007f5a7811b000, 0x00007f5a78121000, 0x00007f5a7820f800, 0x00007f5a78212000,
0x00007f5a7881f000, 0x00007f5a7883d000, 0x00007f5a78840800, 0x00007f5a78842800,
0x00007f5a78844000, 0x00007f5a78846000, 0x00007f5a78848000, 0x00007f5a7892a800,
0x00007f5a78510800, 0x00007f5a78c57800, 0x00007f5a78e2f000, 0x00007f5a78daa000,
0x00007f5a78f6b000, 0x00007f5a79083800, 0x00007f5a79084800, 0x00007f5a6001e800,
0x00007f5a6001f800, 0x00007f5abcd71800, 0x00007f5a6c06a000, 0x00007f5a60008000,
0x00007f5a810a5800, 0x00007f5a78efe800, 0x00007f5a6106c000, 0x00007f5a79140000
}

Java Threads: ( => current thread )
  0x00007f5abc612800 JavaThread "Reference Handler" daemon [_thread_blocked, id=24614, stack(0x00007f5a98c85000,0x00007f5a98d86000)]
  0x00007f5abc614800 JavaThread "Finalizer" daemon [_thread_blocked, id=24615, stack(0x00007f5a98b84000,0x00007f5a98c85000)]
  0x00007f5abc61e000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=24616, stack(0x00007f5a98a83000,0x00007f5a98b84000)]
  0x00007f5abc620000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=24617, stack(0x00007f5a98982000,0x00007f5a98a83000)]
  0x00007f5abc622000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=24618, stack(0x00007f5a98881000,0x00007f5a98982000)]
  0x00007f5abc624000 JavaThread "Sweeper thread" daemon [_thread_blocked, id=24619, stack(0x00007f5a98780000,0x00007f5a98881000)]
  0x00007f5abc667000 JavaThread "Service Thread" daemon [_thread_blocked, id=24620, stack(0x00007f5a9867f000,0x00007f5a98780000)]
  0x00007f5abc66c800 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=24622, stack(0x00007f5a9847c000,0x00007f5a9857d000)]
  0x00007f5abc8be800 JavaThread "Log4j2-TF-1-AsyncLogger[AsyncContext@8bcc55f]-1" daemon [_thread_blocked, id=24626, stack(0x00007f5a917e7000,0x00007f5a918e8000)]
  0x00007f5abce73800 JavaThread "Paper Async Task Handler Thread - 0" [_thread_blocked, id=24644, stack(0x00007f5a900de000,0x00007f5a901df000)]
  0x00007f5abd21e800 JavaThread "Snooper Timer" daemon [_thread_blocked, id=24647, stack(0x00007f5a5d4fe000,0x00007f5a5d5ff000)]
  0x00007f5abd23d000 JavaThread "Server Infinisleeper" daemon [_thread_blocked, id=24648, stack(0x00007f5a5d3fd000,0x00007f5a5d4fe000)]
  0x00007f5abd23e000 JavaThread "Server thread" [_thread_blocked, id=24649, stack(0x00007f5a5d2fc000,0x00007f5a5d3fd000)]
  0x00007f5abc014800 JavaThread "DestroyJavaVM" [_thread_blocked, id=24601, stack(0x00007f5ac4674000,0x00007f5ac4775000)]
  0x00007f5a78008800 JavaThread "Server console handler" daemon [_thread_blocked, id=24650, stack(0x00007f5a5feff000,0x00007f5a60000000)]
  0x00007f5a78115000 JavaThread "Paper Async Chunk Task Thread #0" [_thread_blocked, id=24657, stack(0x00007f5a5f7fa000,0x00007f5a5f8fb000)]
  0x00007f5a7811b000 JavaThread "Paper Watchdog Thread" [_thread_blocked, id=24658, stack(0x00007f5a5f6f9000,0x00007f5a5f7fa000)]
  0x00007f5a78121000 JavaThread "Timer-0" daemon [_thread_blocked, id=24659, stack(0x00007f5a5f5f8000,0x00007f5a5f6f9000)]
  0x00007f5a7820f800 JavaThread "ObjectCleanerThread" daemon [_thread_blocked, id=24662, stack(0x00007f5a5eee9000,0x00007f5a5efea000)]
  0x00007f5a78212000 JavaThread "Netty Epoll Server IO #0" daemon [_thread_blocked, id=24663, stack(0x00007f5a5ede8000,0x00007f5a5eee9000)]
  0x00007f5a7881f000 JavaThread "WorldEdit Session Manager" [_thread_blocked, id=24699, stack(0x00007f5a5e1e5000,0x00007f5a5e2e6000)]
  0x00007f5a7883d000 JavaThread "AutoSaveWorld AutoSaveThread" [_thread_blocked, id=24700, stack(0x00007f5a5e0e4000,0x00007f5a5e1e5000)]
  0x00007f5a78840800 JavaThread "AutoSaveWorld AutoBackupThread" [_thread_blocked, id=24701, stack(0x00007f5a5d1fb000,0x00007f5a5d2fc000)]
  0x00007f5a78842800 JavaThread "AutoSaveWorld AutoPurgeThread" [_thread_blocked, id=24702, stack(0x00007f5a5d0fa000,0x00007f5a5d1fb000)]
  0x00007f5a78844000 JavaThread "AutoSaveWorld AutoRestartThread" [_thread_blocked, id=24703, stack(0x00007f5a5cff9000,0x00007f5a5d0fa000)]
  0x00007f5a78846000 JavaThread "AutoSaveWorld CrashRestartThread" [_thread_blocked, id=24704, stack(0x00007f5a5cef8000,0x00007f5a5cff9000)]
  0x00007f5a78848000 JavaThread "AutoSaveWorld AutoConsoleCommandThread" [_thread_blocked, id=24705, stack(0x00007f5a5cdf7000,0x00007f5a5cef8000)]
  0x00007f5a7892a800 JavaThread "Timer-1" daemon [_thread_blocked, id=24722, stack(0x00007f5a5c8f6000,0x00007f5a5c9f7000)]
  0x00007f5a78510800 JavaThread "Paper RegionFile IO Thread" [_thread_blocked, id=24809, stack(0x00007f5a5c3f5000,0x00007f5a5c4f6000)]
  0x00007f5a78c57800 JavaThread "mysql-cj-abandoned-connection-cleanup" daemon [_thread_blocked, id=24840, stack(0x00007f5a5fafb000,0x00007f5a5fbfc000)]
  0x00007f5a78e2f000 JavaThread "LogBlock-Connection-Pool housekeeper" daemon [_thread_blocked, id=24845, stack(0x00007f5a5fbfc000,0x00007f5a5fcfd000)]
  0x00007f5a78daa000 JavaThread "Logblock-Consumer" [_thread_blocked, id=24847, stack(0x00007f5a5fdfe000,0x00007f5a5feff000)]
  0x00007f5a78f6b000 JavaThread "WorldGuard Region I/O" [_thread_blocked, id=24852, stack(0x00007f5a5b416000,0x00007f5a5b517000)]
  0x00007f5a79083800 JavaThread "Query Listener #1" [_thread_in_native, id=24862, stack(0x00007f5a5a939000,0x00007f5a5aa3a000)]
  0x00007f5a79084800 JavaThread "Craft Async Scheduler Management Thread" [_thread_blocked, id=24863, stack(0x00007f5a5a838000,0x00007f5a5a939000)]
  0x00007f5a6001e800 JavaThread "Netty Epoll Server IO #1" daemon [_thread_blocked, id=25153, stack(0x00007f5a5a737000,0x00007f5a5a838000)]
  0x00007f5a6001f800 JavaThread "Netty Epoll Server IO #2" daemon [_thread_blocked, id=25168, stack(0x00007f5a5a436000,0x00007f5a5a537000)]
  0x00007f5abcd71800 JavaThread "ForkJoinPool.commonPool-worker-3" daemon [_thread_blocked, id=25204, stack(0x00007f5a591e1000,0x00007f5a592e2000)]
  0x00007f5a6c06a000 JavaThread "Server-Worker-6" daemon [_thread_blocked, id=26033, stack(0x00007f5a903df000,0x00007f5a904e0000)]
  0x00007f5a60008000 JavaThread "Netty Epoll Server IO #3" daemon [_thread_blocked, id=26048, stack(0x00007f5a904e0000,0x00007f5a905e1000)]
  0x00007f5a810a5800 JavaThread "Server-Worker-8" daemon [_thread_blocked, id=26194, stack(0x00007f5a5a106000,0x00007f5a5a207000)]
  • Вопрос задан
  • 525 просмотров
Решения вопроса 1
CellycoMobiles
@CellycoMobiles
indi developer @CellycoMobiles
Задушили серверок. Вот, что вам предлагают :
Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# JVM is running with Zero Based Compressed Oops mode in which the Java heap is
# placed in the first 32GB address space. The Java Heap base address is the
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
# to set the Java Heap base and to place the Java Heap above 32GB virtual address.


Но по факту увеличьте размер -Xmx/-Xms. Думаю этого должно хватить.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
Rsa97
@Rsa97
Для правильного вопроса надо знать половину ответа
С самого верха вашего лога идёт здоровенный текст, который английским по белому рассказывает, что случилось, и как это исправить.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы