Ubuntu Linux FTB Infinity Server 1.9.0 cpu load performance

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Trucidoe

Active Member
Jul 29, 2019
9
0
26
First here is the machine I have been running for about 6 months with 5 users at most on my server:

FTB Infinity: 1.9.0
any additional mods: compactmachines-1.7.10-1.20.jar
CPU model name : Intel(R) Core(TM) i7-4765T CPU @ 2.00GHz
OS: Ubuntu 14.04.2 LTS 64bit (with all current patches for os and security)
Java: Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
Memory: 16 Gigs of Ram
SSD: Samsung SSD 850 EVO 250GB

My normal cpu load is .34 to .60 on a daily basis. When 3 users are actively on most of the time it stays in the .65 range with hardly any spikes.

However after upgrading from 1.8.1 to 1.9.0 my CPU load is fluctuating between .70 and 1.17 all over the place, sometimes in the .90 when nobody is even on and no backup is in progress. I am referencing the load numbers you get from the normal uptime command and/or top command. Current minute, 5 minutes, and 15 minute averages. I have not changed any configurations but I was wondering if there are any java arguments I should start implementing? I don't see any disk, user, or memory resource issues. Java never consumes more then 20 percent of overall ram at any give time.

My current ServerStart.sh with java args is as follows:

java -server -Xms2048m -Xmx8192M -XX:permSize=256M -d64 -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:parallelGCThreads=8 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -jar FTBServer-1.7.10-1448.jar nogui
 

Trucidoe

Active Member
Jul 29, 2019
9
0
26
Update. I am still getting a HIGH CPU load. Average is 1.34 and I am also noticing:

1. latest.log file shows spam of "[Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded?" during Ender Quarry on speed 3
2. my fml-server-latest.log is showing "[14:14:03] [Server thread/DEBUG] [FML/]: The world 21c1848d (BestOfTheBest) may have leaked: seen 120 times." for 5 different world id's. This just spams every 10 seconds.
3. I updated to 1.10.1 of FTB Infinity
4. I updated my java args to be: java -server -Xms2048m -Xmx8192M -jar FTBServer-1.7.10-1448.jar nogui

I would just like to get any advise from another Server Admin who might have some wisdom to shine on my situation.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
1. Update your Java version to Java 8 Update 51.

Code:
sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

2. Update your Forge version to latest.

http://files.minecraftforge.net/mav...orge-1.7.10-10.13.4.1492-1.7.10-universal.jar

3. Get rid of the '-server' and '-Xms2048m' portions of your JVM arguments. Server mode is default on 64 bit OS's. Setting a minimum amount of memory for the server to use serves no purpose.

4. Update your FastCraft version to latest.

http://files.player.to/tmp/fastcraft-1.22-ctest13.jar

5. Run your start script as sudo and add the following to the front:

Code:
nice -n -20

Your start script should appear like this:

Code:
nice -n -20 java -Xmx8G -jar forge-1.7.10-10.13.4.1492-1.7.10-universal.jar

Linux scales process priority from -20 to 19 with lower numbers having higher priority. This means that the Infinity server will not be bothered by anything else running on your server. Obviously it will also choke other programs if it starts having performance issues.

Report back with your before and after server TPS and memory usage.
 

Trucidoe

Active Member
Jul 29, 2019
9
0
26
Thanks a lot DZ. I will do the above as you requested. I have never updated forge before so that will be new for me. Everything else I feel confident in.
 

Trucidoe

Active Member
Jul 29, 2019
9
0
26
So far here is the before and after. I have not been able to update forge successfully and get the server to start. Its a new thing for me but I will figure it out.

before requested changes:
TPS

[10:36:51] [Server thread/INFO]: Overall: 20.00 TPS/10.28MS (100%)
[10:36:51] [Server thread/INFO]: Overworld [0]: 20.00 TPS/7.44MS (100%)
[10:36:51] [Server thread/INFO]: Nether [-1]: 20.00 TPS/2.05MS (100%)
[10:36:51] [Server thread/INFO]: Twilight Forest [-7]: 20.00 TPS/0.14MS (100%)
[10:36:51] [Server thread/INFO]: Dungeon [-34]: 20.00 TPS/0.02MS (100%)
[10:36:51] [Server thread/INFO]: rftools dimension [9]: 20.00 TPS/0.14MS (100%)
[10:36:51] [Server thread/INFO]: The Last Millenium [-112]: 20.00 TPS/0.02MS (100%)
[10:36:51] [Server thread/INFO]: CompactMachinesWorld [-666]: 20.00 TPS/0.40MS (100%)
memory
top - 10:37:51 up 20:47, 1 user, load average: 0.59, 0.55, 0.52
Tasks: 163 total, 1 running, 162 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.9 us, 0.2 sy, 0.0 ni, 92.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 16334792 total, 14319768 used, 2015024 free, 139416 buffers
KiB Swap: 16676860 total, 0 used, 16676860 free. 6578376 cached Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25795 mc 20 0 14.187g 6.682g 30360 S 63.9 42.9 542:54.29 java
15 root 20 0 0 0 0 S 0.3 0.0 0:13.01 rcuos/7
1 root 20 0 33468 4056 2716 S 0.0 0.0 0:03.34 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.08 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+

after requested changes (except for forge..how not been succesful at changing that yet):
TPS

[10:47:34] [Server thread/INFO]: Overall: 20.00 TPS/10.17MS (100%)
[10:47:34] [Server thread/INFO]: Overworld [0]: 20.00 TPS/7.25MS (100%)
[10:47:34] [Server thread/INFO]: Nether [-1]: 20.00 TPS/2.06MS (100%)
[10:47:34] [Server thread/INFO]: Twilight Forest [-7]: 20.00 TPS/0.16MS (100%)
[10:47:34] [Server thread/INFO]: Dungeon [-34]: 20.00 TPS/0.03MS (100%)
[10:47:34] [Server thread/INFO]: rftools dimension [9]: 20.00 TPS/0.10MS (100%)
[10:47:34] [Server thread/INFO]: The Last Millenium [-112]: 20.00 TPS/0.02MS (100%)
[10:47:34] [Server thread/INFO]: CompactMachinesWorld [-666]: 20.00 TPS/0.43MS (100%)
memory
top - 11:29:33 up 45 min, 1 user, load average: 0.32, 0.40, 0.46
Tasks: 163 total, 1 running, 162 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.2 us, 0.1 sy, 8.0 ni, 91.6 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 16334792 total, 4608572 used, 11726220 free, 28984 buffers
KiB Swap: 16676860 total, 0 used, 16676860 free. 695932 cached Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5106 root 39 19 13.871g 3.374g 30556 S 45.9 21.7 22:56.39 java
1 root 20 0 33468 3980 2652 S 0.0 0.0 0:00.93 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:+
7 root 20 0 0 0 0 S 0.0 0.0 0:03.28 rcu_sched
8 root 20 0 0 0 0 S 0.0 0.0 0:00.44 rcuos/0
9 root 20 0 0 0 0 S 0.0 0.0 0:00.38 rcuos/1
10 root 20 0 0 0 0 S 0.0 0.0 0:00.78 rcuos/2
11 root 20 0 0 0 0 S 0.0 0.0 0:00.69 rcuos/3

after requested changes and running a single ender quarry with Speed 3
TPS:

/cofh tps
[16:58:18] [Server thread/INFO]: Overall: 20.00 TPS/12.65MS (100%)
[16:58:18] [Server thread/INFO]: Overworld [0]: 20.00 TPS/9.61MS (100%)
[16:58:18] [Server thread/INFO]: Nether [-1]: 20.00 TPS/1.50MS (100%)
[16:58:18] [Server thread/INFO]: Twilight Forest [-7]: 20.00 TPS/0.14MS (100%)
[16:58:18] [Server thread/INFO]: Dungeon [-34]: 20.00 TPS/0.02MS (100%)
[16:58:18] [Server thread/INFO]: rftools dimension [9]: 20.00 TPS/0.70MS (100%)
[16:58:18] [Server thread/INFO]: The Last Millenium [-112]: 20.00 TPS/0.02MS (100%)
[16:58:18] [Server thread/INFO]: CompactMachinesWorld [-666]: 20.00 TPS/0.38MS (100%)
memory
top - 16:56:31 up 6:12, 1 user, load average: 1.22, 0.90, 0.66
Tasks: 161 total, 1 running, 160 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 0.3 sy, 15.5 ni, 84.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 16334792 total, 5937368 used, 10397424 free, 62672 buffers
KiB Swap: 16676860 total, 0 used, 16676860 free. 452744 cached Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4716 root 39 19 13.942g 4.821g 30400 S 127.4 30.9 161:18.11 java
7 root 20 0 0 0 0 S 0.3 0.0 0:31.31 rcu_sched
14 root 20 0 0 0 0 S 0.3 0.0 0:08.67 rcuos/6
21665 mc 20 0 24944 3040 2548 R 0.3 0.0 0:00.08 top
1 root 20 0 33468 3980 2652 S 0.0 0.0 0:01.10 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
Your performance seems to be fine, the only thing I would suggest is lowering your Xmx value by 2 or 3GB if you are getting any lag spikes.

Pastebin the crashlog from when you tried updating Forge. There is probably an out of date mod or I linked you the wrong file.
 

Goshen

New Member
Jul 29, 2019
189
0
1
Java 8 doesn't use permgen flags, you can remove those, not that it matters.

We had a huge performance hit with the 1.9 update as well.

Chickenchunks on our server is set to not load chunks when a player is online, but it was.

We had a huge jump in tps by disabling the chickenchunks mod. It also starts MUCH faster, it doesn't pause when loading the dims.

The other issue we found is that if a player is in twilight forest the TPS drops instantly when the go in, and goes back up when the player leaves twilight.