本帖最后由 颅内开灯 于 2021-2-9 16:12 编辑
服务器我已经按照个人的能力能优化的优化。想要在寻求寻求大佬们的高见。
请有技术向的大佬们给一套争对本timings一套详细一点的优化方案参数,插件之类的或者见解
https://timings.spigotmc.org/?url=awacudivoh
服务器版本为1.16.3.使用的spigot端.
服务器机子目前时3700x,10G。常驻玩家30人左右。TPS在18-20波动
本帖最后由 AbstractPrinter 于 2021-2-9 18:00 编辑
首先 Timings 给了一个建议
复制代码
https://www.mcbbs.net/thread-876653-1-1.html
(出处: Minecraft(我的世界)中文论坛)
首先 Timings 给了一个建议
Notice: Your AVG TPS is less than 19 but server load is less than 95. This may mean your server is having memory issues (leak or not enough).
This is usually a sign that Java is spending too much time Garbage Collecting. Try using -XX:+UseG1GC -XX:MaxGCPauseMillis=50 flags and increasing your -Xmx.
- Java花费了太多时间进行内存回收,尝试在启动参数中添加-XX:+UseG1GC -XX:MaxGCPauseMillis=5
- 建议你使用 PaperSpigot 取代 Spigot👉https://papermc.io
- 建议你更新到 Java11
- Aikar建议的启动参数:
- java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar <服务器核心>.jar nogui
- 1.14.2以上版本建议安装以下插件👇
https://www.mcbbs.net/thread-876653-1-1.html
(出处: Minecraft(我的世界)中文论坛)
- InfernalMobs这款精英怪插件建议你调~教一下
- 建议你使用spark生成一份10分钟以上的报告