My server laggy for no reason


#1

First of all my server specs;
i7 7700K OC (5ghz)
64GB DDR4 2400mhz RAM
x2 480GB Nvme
1Gbps Internet
OS:Ubuntu Server 17.10 "Artful Aardvark"
Java: Java 8 64bit Update 161

Plugins i use:
CatClearLag-0.8.1.jar
Clumps-3.0.0.jar
crazyfeet-sponge-Api-7-1.14.jar
LuckPerms-Sponge-4.0.60.jar
MagiBridge-API7-2.4.5.1.jar
MMCReboot-2.1.3-API-7.jar
MMCRestrict-1.4.1-API-7.jar
Nucleus-1.3.1-S7.0-MC1.12.2-plugin.jar
PlayerGlow_1.1.1.jar
SpongeBootstrap-0.6.2.jar
spongeforge-1.12.2-2611-7.1.0-BETA-2935.jar
webapi-4.10.8-S7.1.jar
worldedit-sponge-6.1.9-SNAPSHOT-dist.jar

Java Arguments i use atm: -Xms16G -Xmx16G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1MaxNewSizePercent=60 -XX:G1NewSizePercent=35
-XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -jar FTBserver-1.12.2-14.23.2.2618.jar -XX:+UseLargePagesInMetaspace

Timings: https://timings.aikar.co/?id=fb215ca2a32c44d6bbe03c735d687def
Snapshot / NPS File: https://drive.google.com/file/d/193_aD8HIDQe_RglQ14pKesNTid67PyPc/view

I’m running FTB Revelation server but for some reason it’s laggy as hell and for some reason my server doesnt use the CPU it’s only uses 2% of the CPU and TPS about 5, 6 it doesnt make any sense.
(Server running on ubuntu, 64bit java lastest)


#2

Please post your plugin list and your startup script.


#3

Hello, i do not use any java arguments and i do not have start up script because i’m using AMP (Cubecoders) console, it does the start up script for me and the plugins i use;
CatClearLag-0.8.1.jar
LuckPerms-Sponge-4.0.116.jar
MagiBridge-API7-2.4.5.1.jar
MMCReboot-2.1.3-API-7.jar
MMCRestrict-1.4.1-API-7.jar
Nucleus-1.3.1-S7.0-MC1.12.2-plugin.jar
projectcore-7.0.0-0.2.1.jar
spongeforge-1.12.2-2611-7.1.0-BETA-2931.jar
TabManager-1.0.4.jar
webapi-4.10.8-S7.1.jar
worldedit-sponge-6.1.9-SNAPSHOT-dist.jar


#4

The startup script can be managed externally, but it is still important for us to know what the actual arguments are. Can you at least provide the settings you’ve put into the manager?


#5

I guess it’s all i have


#6

And have you recorded any timings?


#7

How do i do it?


#8

https://timings.aikar.co/?id=fb215ca2a32c44d6bbe03c735d687def


#9

A quick look shows what’s happening.
image

Somehow, you’ve got almost 1900 chunks loaded with 3 players and over 100,000 tile entities. I don’t even know how that happens.

My experience with modded servers is limited and I’ve never worked with FTB, so on that I’m in the dark. Perhaps these numbers are normal for servers running some of these mods, but I find that unlikely. You’ll have to figure out why this is happening and how to reduce those numbers.


#10

I did used backup back in days because something broke the world file then after i use the backup some how 3 people lost their base and they found a mountain than their base in the same place, i’m guessing that backup might broke the world and causes that kind of problems then


#11

That doesn’t sound very likely. A backup just consists of copying the files, not interpreting them; if anything got screwed up, it would just be corrupted instead of incorrect data. Orphaned tile entities are possible, but they’d be highly unlikely to be created from backup.
It’s likely a mod issue of some sort; you could file an issue on the Revelation project page.
It’s also possible that it’s a player issue. IIRC Revelation doesn’t have RFTools Dimensions, but is it possible that someone has found some other way to create a world made out of tile entity blocks? Ask your players if they have been doing anything crazy lately involving machines or other forms of processing. Specifically from the report it looks like there’s a lot of Thermal Expansion machines slowing stuff down.


#12

I checked the world files and there is nothing weird about those, world files are okay. I got nps (snapshot) file for visualvm just from few minutes ago but i have no idea how to read it
https://drive.google.com/open?id=193_aD8HIDQe_RglQ14pKesNTid67PyPc


#13

The thing i dont understand the most, why it’s using only 2% of the CPU.


#14

As someone who has expirence running modded servers, 100k tile entities is VERY excessive for just 3 players… If it has been online for a long time and there were chunk loaders which persist after the user goes offline and there had been many, that could explain it, but the timings only show, what, 10 minutes? Utterly nuts, never seen mine go above 40k and that was with over 10 players online and chunk loaders.


#15

That 3 players from staff team because i turn off the server till i fix this TPS problem, i usually have +25 online players and there is +250 whitelisted players it’s been 1month, i can not turn off the offline chunkloaders since FTBU dont let me to or i do something wrong about it.

Btw: My java arguments;
-Xms16G -Xmx16G -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:+DisableExplicitGC -XX:TargetSurvivorRatio=90 -XX:G1MaxNewSizePercent=60 -XX:G1NewSizePercent=35 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:+AlwaysPreTouch -jar FTBserver-1.12.2-14.23.2.2618.jar -XX:+UseLargePagesInMetaspace

The server uses 1% - 3% CPU and this doesnt make any sense

Note: We transfer the server another stronger machine than old one, old one were using 10- 17% CPU (the guy who made it left the team, i can not contact with him) and now we cant fix this CPU issue


#16

Meanwhile tps is 3 and CPU only uses 1% not even 2%


#17

Yeah, don’t let players use those chunkloaders. That’s a bad idea. 250 players total, 20 chunkloads per person, and you let them do it with impunity? 1897 chunks sounds about right. You really need to disable that. I don’t know how, but there’s no way FTBU would put a free chunk loader in without a way to disable it.


#18

Players got 8chunk loaders per person, i spoke with FTBU dev. He isnt helpful or friendly at all, he just said “that version (lastest) is broken” and that was all, idk how to do it either, i tried few stuffs but not worked


#19

Any idea about the CPU usage?