{"action":"created","issue":{"url":"https://api.github.com/repos/ammaraskar/pyCraft/issues/70","repository_url":"https://api.github.com/repos/ammaraskar/pyCraft","labels_url":"https://api.github.com/repos/ammaraskar/pyCraft/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/ammaraskar/pyCraft/issues/70/comments","events_url":"https://api.github.com/repos/ammaraskar/pyCraft/issues/70/events","html_url":"https://github.com/ammaraskar/pyCraft/issues/70","id":250303988,"number":70,"title":"High memory usage on server after ~12 hours","user":{"login":"kyriog","id":629831,"avatar_url":"https://avatars0.githubusercontent.com/u/629831?v=4","gravatar_id":"","url":"https://api.github.com/users/kyriog","html_url":"https://github.com/kyriog","followers_url":"https://api.github.com/users/kyriog/followers","following_url":"https://api.github.com/users/kyriog/following{/other_user}","gists_url":"https://api.github.com/users/kyriog/gists{/gist_id}","starred_url":"https://api.github.com/users/kyriog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyriog/subscriptions","organizations_url":"https://api.github.com/users/kyriog/orgs","repos_url":"https://api.github.com/users/kyriog/repos","events_url":"https://api.github.com/users/kyriog/events{/privacy}","received_events_url":"https://api.github.com/users/kyriog/received_events","type":"User","site_admin":false},"labels":[{"id":2641825,"url":"https://api.github.com/repos/ammaraskar/pyCraft/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2017-08-15T12:44:18Z","updated_at":"2017-08-29T21:38:20Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nAfter ~ 12 hours with a pycraft account connected to a server (1.12.1), memory usage on server is way more higher than official client or Minecraft Console Client (more than 2×): on my Ubuntu server with 16GB RAM, using htop, official client consumes 2.2%, MCC (Minecraft Console Client) consumes 3.0% and Pycraft consumes 7.1%. This seems to happen too with 1.11.2 server.\r\n\r\nI'm using the latest version `46e058d`, zip-downloaded from GitHub. But I was able to reproduce with an older version, before 1.12.\r\n\r\n## Steps to reproduce\r\n\r\n1. On a server, create a specific folder for Minecraft Server.\r\n2. Download official server jar from Mojang: https://minecraft.net/fr-fr/download/server\r\n3. Start a first time the server to generate eula.txt file.\r\n4. Accept EULA.\r\n5. Start again server, then run commands \"difficulty 0\" and \"gamerule doMobSpawning false\" to prevent mob generation (and random ram consumption).\r\n6. Stop server.\r\n7. (Optionnal) in server.properties, set online-mode to false to make tests easier.\r\n8. Copy Minecraft Server folder twice: one for Pycraft client, one for MCC, one for official as reference.\r\n9. In each directory, set a different listening port, and rename jar to readable name (for example, \"minecraft_server.1.12.1_pycraft.jar\")\r\n10. Start each server\r\n11. Connect at the same time one pycraft client, one MCC and one official client to its corresponding server.\r\n12. Wait ~12 hours\r\n13. Using any system tool, check memory usage for server: pycraft should use way more RAM than the others.\r\n\r\n## Expected results\r\n\r\nPycraft server should use almost the same quantity of ram than the other clients."},"comment":{"url":"https://api.github.com/repos/ammaraskar/pyCraft/issues/comments/325812065","html_url":"https://github.com/ammaraskar/pyCraft/issues/70#issuecomment-325812065","issue_url":"https://api.github.com/repos/ammaraskar/pyCraft/issues/70","id":325812065,"user":{"login":"Pokechu22","id":8334194,"avatar_url":"https://avatars2.githubusercontent.com/u/8334194?v=4","gravatar_id":"","url":"https://api.github.com/users/Pokechu22","html_url":"https://github.com/Pokechu22","followers_url":"https://api.github.com/users/Pokechu22/followers","following_url":"https://api.github.com/users/Pokechu22/following{/other_user}","gists_url":"https://api.github.com/users/Pokechu22/gists{/gist_id}","starred_url":"https://api.github.com/users/Pokechu22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pokechu22/subscriptions","organizations_url":"https://api.github.com/users/Pokechu22/orgs","repos_url":"https://api.github.com/users/Pokechu22/repos","events_url":"https://api.github.com/users/Pokechu22/events{/privacy}","received_events_url":"https://api.github.com/users/Pokechu22/received_events","type":"User","site_admin":false},"created_at":"2017-08-29T21:38:20Z","updated_at":"2017-08-29T21:38:20Z","author_association":"NONE","body":"I tweaked MCC to always confirm teleports even when terrain and movements is disabled; it still doesn't generate chunks beyond the one the player is in (just FYI).  So it's probably actual motion logic that matters, and that's probably not directly related to memory use.  Probably."}}
{"actor":{"display_login":"Pokechu22"}}