Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.7.8: Server restart when incomplete and postShutdownDelay #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VADemon
Copy link

@VADemon VADemon commented Jun 1, 2019

- Restart server when gen didn't complete:
During generation with big view-distances in Alpha versions it occured that the server would spontaneously shutdown BEFORE it completed the generation. Without this patch to generate a continuous chunk of land you'd need to restar the whole gen at least 2-5 times or make huge overlaps.

- add postShutdownDelay to wait between iterations
When closing the server process, Windows did not immediately return the occupied memory such that the next JVM process didn't have enough free RAM to reserve.

The solution is to delay the next run, but I'm not sure the Thread.sleep I introduced really works as expected, looking at processes in ProcessExplorer didn't show it waited 2.5s :/ So if you can confirm working or help fix it, that'd be neat.

Old features untouched - backwards compatible.

PS: Should've made the formatting fix into another commit.

- Restart server when gen didn't complete
- add postShutdownDelay to wait between iterations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant