颅内开灯
本帖最后由 颅内开灯 于 2021-2-9 16:12 编辑

服务器我已经按照个人的能力能优化的优化。想要在寻求寻求大佬们的高见。

请有技术向的大佬们给一套争对本timings一套详细一点的优化方案参数,插件之类的或者见解

https://timings.spigotmc.org/?url=awacudivoh

服务器版本为1.16.3.使用的spigot端.
服务器机子目前时3700x,10G。常驻玩家30人左右。TPS在18-20波动


layue13
本帖最后由 AbstractPrinter 于 2021-2-9 18:00 编辑

首先 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.

原文你可以去读读👉https://aikar.co/2018/07/02/tuni ... flags-for-minecraft
  1. 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
复制代码

[优化] Villager Optimiser —— 优化1.14.2以上的村民寻路以减少卡顿 [1.14.2-1.16]
https://www.mcbbs.net/thread-876653-1-1.html
(出处: Minecraft(我的世界)中文论坛)


第一页 上一页 下一页 最后一页