Project

General

Profile

Actions

Defect/Bug #237

closed

Infinity CPU Leak

Added by Slind almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Administrator
Category:
-
Target version:
-
Start date:
2015-06-29
Due date:
% Done:

100%

Estimated time:
Resolution:
Out of date
Modpack(s):
Infinity
Node:

Description

As the infinity server is getting slower and slower with every minute unrelated to the amount of players, loaded chunks and entities -> I did some research, here is what I found and how I did it.

So I used visual vm to profile the server before the 1 hour uptime mark for around 5 minutes (~300.000 ms).

  • post uptime of 41 min.
  • average of 18 tps
  • 27 players
  • 10k chunks
  • 1400 entities
  • 45k tile ents

After a little brake little break I did the same again, but this time the tps of the server where half way down, so to compensate the fewer ticks that would pass in the same time I doubled the profiling duration to around 10 minutes (~600.000 ms).

  • post uptime of 1h 31m
  • average of 5.4 tps
  • 27 players
  • 12k chunks
  • 2670 entities
  • 34k tile ents

Now it is important to note out that the tps difference isn't 2 to 1. It is more like 3.5 to 1, so please keep that in mind when looking at the comparison. Every difference is worth a lot more. Also keep in mind that we have a few more chunks and twice as many entities on the second run.

Going from the top to the bottom:



^ increased amount of entities

^ increased entities + special situation like wireless charger

That's it already. Now there isn't much, most of it can be explained with the increased amount of entities. But the odd thing here is, that even killing of them. Hostile, friendly, projectiles, items.. it does only marginally increase the tps. In this case from 6 tps to 7.5.

How can this be?


Files

2015-06-28_23-04-20.png (4.29 KB) 2015-06-28_23-04-20.png > 1 hour uptime - after 5 min. profile Slind, 2015-06-29 01:05
2015-06-28_23-05-00.png (36.1 KB) 2015-06-28_23-05-00.png > 1 hour uptime - after 5 min. profile Slind, 2015-06-29 01:05
2015-06-29_01-01-58.png (4.59 KB) 2015-06-29_01-01-58.png < 1 hour uptime - after 10 min. profile (to achieve the same tick amount) Slind, 2015-06-29 01:05
2015-06-29_01-02-07.png (31 KB) 2015-06-29_01-02-07.png < 1 hour uptime - after 10 min. profile (to achieve the same tick amount) Slind, 2015-06-29 01:06
- 1 hour uptime - 5 min. profile.nps (139 KB) - 1 hour uptime - 5 min. profile.nps - 1 hour uptime - 5 min. snapshot Slind, 2015-06-29 01:27
+ 1 hour uptime - 10 min. profile.nps (127 KB) + 1 hour uptime - 10 min. profile.nps + 1 hour uptime - 10 min. snapshot Slind, 2015-06-29 01:27
latest_chunk-load-debug.zip (328 KB) latest_chunk-load-debug.zip chunkload after restart (no players) Slind, 2015-09-09 09:25
Actions

Also available in: Atom PDF