udoprog / c10t

A minecraft cartography tool
Other
225 stars 50 forks source link

Unexpected Server Overload #159

Closed atamis closed 12 years ago

atamis commented 13 years ago

So, on a small Minecraft server, we generate 4 maps every minute, as well as statistics (using cron), and occasionally, with very little warning, the server gets rapidly overloaded, and crashes hard. The CPU is completely locked up, and it requires a hard restart. Am I asking too much from c10t? Too much from the server? Why is this happening? I'd give you the c10t logs, but the server is down, and I can't get at them.

frymaster commented 13 years ago

if it's literally freezing and requiring a restart (as opposed to being unusable-because-overloaded-but-still-technically-responding-just-badly) then you have a hardware issue

however... do your scripts run even if the last set of scripts is still running? If so, it only takes them to be a little behind for it to all pile up, ending up with an unusably-slow server with a load average in the double or triple digits.

atamis commented 13 years ago

I'm sorry I wasn't clear. It was slowing down so much it was impossible to ssh in, and logging in on the hard ware was really slow.

Yes, the scripts run even if the others are still running. It's possible that's the problem. I've got them running on 1 core each to reduce load, but it could be that that is actually increasing load. I'll try reducing the load to just 2 maps and seeing how that works.

udoprog commented 12 years ago

Non-reproducable since it's an environment issue, it might be possible to tell c10t to "ease of" a bit by waiting between generating slices, but that should be a feature request.