[SpongeForge] Worlds unloaded on start?


#1

Hey,

There used to be this epic feature inside of MCPC+/Cauldron that basically made it where whenever you started your server, the only world that would be loaded would be the Overworld, and all other worlds would be unloaded until there was a request to load that world.

This would help settle TPS issues from other worlds and them ticking the server to death whenever you had 30+ worlds. Is there a feature anywhere that could simulate this?

Thanks,


#2

If you havn’t already, consider reading the docs.

https://docs.spongepowered.org/stable/en/server/getting-started/configuration/sponge-conf.html?highlight=keep%20spawn%20loaded

The option you are looking to disable is keep-spawn-loaded I believe.

This can be overridden on a world by world, or dimension by dimension basis.


#3

I have indeed read the documentation, I must’ve skipped over that. I appreciate you pointing it out, though you could’ve been a tad bit nicer when pointing it out.

I think this should do what I need it to do, let me check if it lowers the tick for those particular dimensions to 0.


#4

It seems I am still getting reasonable ticks from the other worlds. This adds up a lot whenever you have ~30 of them, is there anyway to lower this to absolute zero?

[21:29:32] [Server thread/INFO]: Dim 0 : Mean tick time: 5.722 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -33 : Mean tick time: 1.559 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -29 : Mean tick time: 0.307 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -16 : Mean tick time: 0.136 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -37 : Mean tick time: 0.130 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -13 : Mean tick time: 0.130 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -32 : Mean tick time: 0.125 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -30 : Mean tick time: 0.124 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -17 : Mean tick time: 0.125 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -28 : Mean tick time: 0.127 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -18 : Mean tick time: 0.132 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -2544 : Mean tick time: 0.137 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -2542 : Mean tick time: 0.133 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -20 : Mean tick time: 0.135 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -19 : Mean tick time: 0.134 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -2543 : Mean tick time: 0.136 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -22 : Mean tick time: 0.185 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -21 : Mean tick time: 0.140 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -35 : Mean tick time: 0.141 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -39 : Mean tick time: 0.140 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -15 : Mean tick time: 0.140 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim 1 : Mean tick time: 0.146 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -31 : Mean tick time: 0.140 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -1 : Mean tick time: 0.142 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -34 : Mean tick time: 0.139 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -36 : Mean tick time: 0.137 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -40 : Mean tick time: 0.138 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -38 : Mean tick time: 0.139 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -43 : Mean tick time: 0.139 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -41 : Mean tick time: 0.142 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Dim -42 : Mean tick time: 0.139 ms. Mean TPS: 20.000
[21:29:32] [Server thread/INFO]: Overall : Mean tick time: 15.673 ms. Mean TPS: 20.000


#5

Apologies, what could I have done better?
I’ve been putting effort into watching my tone, and truly appreciate any feedback as I’m trying to keep this a positive community. To be explicit, If you havn’t already, wasn’t meant as sass, but genuinely only trying to guard the next suggestion to read the docs, otherwise just saying “Read the docs” would imply you hadn’t even if you had?

It seems I am still getting reasonable ticks from the other worlds. This adds up a lot whenever you have ~30 of them, is there anyway to lower this to absolute zero?

I’m somewhat aware of things similar to this issue crossing our issue tracker, just not sure of it’s current status.

@phit any ideas?


#6

Looks like those dims still have their spawn chunks loaded, besides keep-spawn-loaded try also setting load-on-startup to false.

Also in general for the configs you edited, doublecheck that you set config-enabled=true, I’ve been seeing a lot of people not doing so.


#7

@ryantheleach
Hey,
Sorry, yeah just seemed a bit harsh toned, you’re fine though. I am appreciating the help.

@phit
Trying this now, will report back, I think I had that set to true, and the keep-spawn : false, with load-on-startup to false too.


#8

@phit

I’ve gone through all of the configs, and set:

config: true
load-on-startup: false
keep-spawn-loaded: false

forge tps
[09:59:54] [Server thread/INFO]: Dim 0 : Mean tick time: 2.429 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -33 : Mean tick time: 0.882 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -29 : Mean tick time: 0.081 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -16 : Mean tick time: 0.079 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -37 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -13 : Mean tick time: 0.078 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -32 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -30 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -17 : Mean tick time: 0.078 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -28 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -18 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -2544 : Mean tick time: 0.080 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -2542 : Mean tick time: 0.077 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -20 : Mean tick time: 0.078 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -2543 : Mean tick time: 0.077 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -19 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -22 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -21 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -35 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -39 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -15 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -31 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -1 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -34 : Mean tick time: 0.076 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -36 : Mean tick time: 0.074 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -40 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -38 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -43 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -41 : Mean tick time: 0.075 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Dim -42 : Mean tick time: 0.074 ms. Mean TPS: 20.000
[09:59:54] [Server thread/INFO]: Overall : Mean tick time: 5.573 ms. Mean TPS: 20.000

There’s no one of the server, so this can account for the low tps of the overworld, I feel like this might be good enough, though they still seem loaded somehow somewhere.

EDIT:

Lied, they jump up to 0.1 again after someone joins.

EDIT 2:

Lied again, for some reason some configs reverted, not sure. Changed them again and they stayed this time. However some of the worlds won’t unload their spawns/world. Configs seem fine. Continuing to check.