{"action":"created","issue":{"url":"https://api.github.com/repos/gecgooden/chunkgen/issues/12","repository_url":"https://api.github.com/repos/gecgooden/chunkgen","labels_url":"https://api.github.com/repos/gecgooden/chunkgen/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/gecgooden/chunkgen/issues/12/comments","events_url":"https://api.github.com/repos/gecgooden/chunkgen/issues/12/events","html_url":"https://github.com/gecgooden/chunkgen/issues/12","id":106443370,"number":12,"title":"Chunkgen large areas leads to Out-Of-Memory exceptions.","user":{"login":"credomane","id":1283031,"avatar_url":"https://avatars.githubusercontent.com/u/1283031?v=3","gravatar_id":"","url":"https://api.github.com/users/credomane","html_url":"https://github.com/credomane","followers_url":"https://api.github.com/users/credomane/followers","following_url":"https://api.github.com/users/credomane/following{/other_user}","gists_url":"https://api.github.com/users/credomane/gists{/gist_id}","starred_url":"https://api.github.com/users/credomane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/credomane/subscriptions","organizations_url":"https://api.github.com/users/credomane/orgs","repos_url":"https://api.github.com/users/credomane/repos","events_url":"https://api.github.com/users/credomane/events{/privacy}","received_events_url":"https://api.github.com/users/credomane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-14T22:48:15Z","updated_at":"2016-04-28T16:42:30Z","closed_at":null,"body":"Chunkgen seems to loads chunks as quickly as it can with no apparent limiter. If forge doesn't unload chunks faster than chunkgen is loading them the server eventually dies. The chunk generator says ```unloadChunksIfNotNearSpawn``` but that doesn't seem to be as fast as chunkgen is loading them. Ram for the minecraft server is 2.5GB and total ram in the server is 8gb. RAM normally isn't ever an issue unless I use chunkgen on a large area. Would it be possible to check for the number of loaded chunks when starting gen then pausing the gen for a bit if the loaded chunks get say 250 more than that initial value? Or perhaps add in a manual save-all every so many chunks to help convince forge to unload the chunks?\r\n\r\n```/chunkgen 0 0 100 100 0```\r\n\r\n```[01:18:45] [Server thread/INFO] [chunkgen/]: Loaded Chunk at -50 -50 0\r\n--SNIP--\r\n[01:29:51] [Server thread/INFO] [chunkgen/]: percentage: 0.69200003\r\n[01:29:51] [Server thread/INFO] [chunkgen/]: Loaded Chunk at 19 -30 0\r\n[01:29:51] [Server thread/ERROR] [FML/]: Exception caught during firing event cpw.mods.fml.common.gameevent.TickEvent$ServerTickEvent@55a88681:\r\njava.lang.OutOfMemoryError: GC overhead limit exceeded\r\n```\r\n\r\nThis becomes even more apparent when ```/chunkgen 0 0 100 100 0``` crashes then after starting back up you repeat the command only to have it crash even faster."},"comment":{"url":"https://api.github.com/repos/gecgooden/chunkgen/issues/comments/215489744","html_url":"https://github.com/gecgooden/chunkgen/issues/12#issuecomment-215489744","issue_url":"https://api.github.com/repos/gecgooden/chunkgen/issues/12","id":215489744,"user":{"login":"Baughn","id":45811,"avatar_url":"https://avatars.githubusercontent.com/u/45811?v=3","gravatar_id":"","url":"https://api.github.com/users/Baughn","html_url":"https://github.com/Baughn","followers_url":"https://api.github.com/users/Baughn/followers","following_url":"https://api.github.com/users/Baughn/following{/other_user}","gists_url":"https://api.github.com/users/Baughn/gists{/gist_id}","starred_url":"https://api.github.com/users/Baughn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Baughn/subscriptions","organizations_url":"https://api.github.com/users/Baughn/orgs","repos_url":"https://api.github.com/users/Baughn/repos","events_url":"https://api.github.com/users/Baughn/events{/privacy}","received_events_url":"https://api.github.com/users/Baughn/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T16:42:30Z","updated_at":"2016-04-28T16:42:30Z","body":"Just a thought, but it may be more efficient to, say, unload chunks every 256 chunks generated.\r\n\r\nI don't actually know this. Time for since tests!"}}