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

longye1234

1.16.5的服 会不会不够用.....

Qingraw
longye1234 发表于 2021-7-23 23:11
1.16.5的服 会不会不够用.....

哪会不够用,我觉得4GB带30人都行

longye1234
Qingraw 发表于 2021-7-23 23:13
哪会不够用,我觉得4GB带30人都行

好的 收到 我试试
我在联机问答还提了一个问题  不能pvp的
您可以帮我看一下么

Qingraw
longye1234 发表于 2021-7-23 23:14
好的 收到 我试试
我在联机问答还提了一个问题  不能pvp的
您可以帮我看一下么

服务端根目录server.properties文件pvp=true看下有没有设置true

longye1234
Qingraw 发表于 2021-7-23 23:16
服务端根目录server.properties文件pvp=true看下有没有设置true

设置了 是没有问题的

Lake_DADA
把你的启动内存改为512MB
@echo OFF
:head
java -Xmx512G -Xms512G -jar PaperSpigot.jar nogui

longye1234
Lake_DADA 发表于 2021-7-23 23:45
把你的启动内存改为512MB
@echo OFF
:head

已经解决了 谢谢  我还问了一个服务器不能pvp的问题你可以去看下嘛  我把ESS都卸了 然并卵