When joining a singleplayer world the integrated server instance will be assigned to the EventsHandler#server field. After leaving the world and joining a dedicated server the EventsHandler#server field will still hold the old value. Thus there will be a WorldServer instance in memory which can't be garbage collected.
When joining a singleplayer world the integrated server instance will be assigned to the
EventsHandler#server
field. After leaving the world and joining a dedicated server theEventsHandler#server
field will still hold the old value. Thus there will be aWorldServer
instance in memory which can't be garbage collected.