longye1234



既然出现了这些
如何去解决呢?

strings
分配更少的内存,你的空余内存不足了。

longye1234
もぺもぺ 发表于 2021-7-23 23:01
分配更少的内存,你的空余内存不足了。

从哪看出来的...

strings
  1. #
  2. # There is insufficient memory for the Java Runtime Environment to continue.
  3. # Native memory allocation (mmap) failed to map 10737418240 bytes for G1 virtual space
  4. # Possible reasons:
  5. #   The system is out of physical RAM or swap space
  6. #   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
  7. # Possible solutions:
  8. #   Reduce memory load on the system
  9. #   Increase physical memory or swap space
  10. #   Check if swap backing store is full
  11. #   Decrease Java heap size (-Xmx/-Xms)
  12. #   Decrease number of Java threads
  13. #   Decrease Java thread stack sizes (-Xss)
  14. #   Set larger code cache with -XX:ReservedCodeCacheSize=
  15. #   JVM is running with Zero Based Compressed Oops mode in which the Java heap is
  16. #     placed in the first 32GB address space. The Java Heap base address is the
  17. #     maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
  18. #     to set the Java Heap base and to place the Java Heap above 32GB virtual address.
  19. # This output file may be truncated or incomplete.
  20. #
  21. #  Out of Memory Error (os_windows.cpp:3466), pid=400, tid=924
  22. #
复制代码

longye1234


@echo OFF
:head
java -Xmx10G -Xms10G -jar PaperSpigot.jar nogui
goto head
这是我的启动脚本 需要改动什么么?
把10G变成12G?
内存不足?可是服务器没人啊....我晕了

strings
longye1234 发表于 2021-7-23 23:05
@echo OFF
:head
java -Xmx10G -Xms10G -jar PaperSpigot.jar nogui

分配更少的内存,你的空余内存不足了。



longye1234
もぺもぺ 发表于 2021-7-23 23:05
分配更少的内存,你的空余内存不足了。

什么意思?我真的没有理解..
您直接教我应该怎么做吧
你的意思是 10G内存多了 分配少点? 8G?

Qingraw
longye1234 发表于 2021-7-23 23:05
@echo OFF
:head
java -Xmx10G -Xms10G -jar PaperSpigot.jar nogui

两个10G改4G

下一页 最后一页