BentoBoxWorld / SkyGrid

SkyGrid gamemode addon for BentoBox
Eclipse Public License 2.0
8 stars 3 forks source link

When leaving the server idle, CPU usage goes up, and the disk is written to every 1 second. #14

Closed robbiemcleod56 closed 5 years ago

robbiemcleod56 commented 5 years ago

Description I've been having this problem ever since I set up SkyGrid, just never thought it was going to be a repeating issue. The server has all three of your working games on it (SkyBlock, AcidIsland, and SkyGrid, I couldn't get CaveBlock to work at all, at least while installed with the other games,) and noticed the odd behaviour mentioned above. I would leave the server running, and it could take it days, it could take it hours, but it always ends up stuck in some sort of loop where the CPU usage goes to about 25%-50% on my own dedicated server, and the disk can be heard being written to every second, although only a small tick sound. Also sorry, but I forgot to grab a timings report before restarting the server.

Steps to reproduce the behavior:

  1. Just leaving it running for an extended period of time with all of the games installed.

Expected behavior Definitely not high CPU and repetitive disk usage.

Screenshots image

Server Information:

Additional context If there's a certain log you would like, let me know. Also unrelated (kind of,) but there's a similar bug I'm posting for AcidIsland where it takes a massive amount of CPU.

tastybento commented 5 years ago

You should restart the server every 24 hours. Here's a typical tip from a random server hosting company I found about it: https://shockbyte.com/billing/knowledgebase/5/Tip-How-often-you-should-restart-your-Minecraft-server.html

I'd say that SkyGrid has some of the most intense memory requirements because every single block is exposed and active on that world. With regular worlds, they are typically hidden/occluded, so don't have to be managed.

robbiemcleod56 commented 5 years ago

RAM isn't the problem, I don't hit the top of that, no crashes, nothing like that, and a player doesn't even need to connect for it to start happening. It's seemingly random. I've already noticed the RAM requirements when setting it up (hard not to notice. Haha.) But there is a loop it gets stuck in for some reason. What's the debug command? I'll try running that the next time it happens and post the log.