System overload event?

Discussion in 'Plugin Development' started by Blah1, Apr 9, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Blah1

    How can you tell when the server has had too much and is skipping too many ticks.

    I'm trying to something pretty intensive and I don't want it to crash the server. So I'm probably gonna do Thread.sleep for about 5 seconds whenever the system gets overloaded.
     
  2. Offline

    coasterman10

    If you are doing something intensive, you may want to consider breaking it up into smaller pieces or running it asynchronously. Code should never, ever be built in a way where it's expected to crash or lag out under normal circumstances.
     
Thread Status:
Not open for further replies.

Share This Page