Hi. I'm running my own server on a dedicated box that I manage. I've recently been having nothing but disasters with memory & CPU usage.
As soon as a player joins the world, memory usage starts to accumulate. Even if they don't move around at all the memory climbs up to the maximum (which is currently 1GB). Naturally this results in the Minecraft process crashing, since Java isn't able to allocate more memory. Additionally, there is a problem with CPU usage. Approximately every one minute there is a 20-second time period where the CPU usage is at 100%. I've got a single-core 2GHz CPU, so this shouldn't be happening with just one player.
Honestly based on the symptoms it seems like the garbage collector isn't even running, thus the memory leak. I'm using the headless OpenJDK, version 1.7.0_55, running on Ubuntu 14.04. I'm running the snapshots (14w30c), but this issue also occurred on 1.7.10. Any ideas?
Try installing Oracle's JDK, it is often a lot more stable compared to OpenJDK.
Thanks for the suggestion! I just swapped out my version of OpenJDK with Oracle's JDK8. Although it seems like memory usage growth is a bit slower now, it still keeps growing. CPU usage still spikes on a cycle. I don't have any launcher flags, so I don't think it's a matter of me having the wrong configuration.
As soon as a player joins the world, memory usage starts to accumulate. Even if they don't move around at all the memory climbs up to the maximum (which is currently 1GB). Naturally this results in the Minecraft process crashing, since Java isn't able to allocate more memory. Additionally, there is a problem with CPU usage. Approximately every one minute there is a 20-second time period where the CPU usage is at 100%. I've got a single-core 2GHz CPU, so this shouldn't be happening with just one player.
Honestly based on the symptoms it seems like the garbage collector isn't even running, thus the memory leak. I'm using the headless OpenJDK, version 1.7.0_55, running on Ubuntu 14.04. I'm running the snapshots (14w30c), but this issue also occurred on 1.7.10. Any ideas?
He has a computer dedicated to running the server, and it has that cpu. He probably has a much better computer for gaming
Thanks for the suggestion! I just swapped out my version of OpenJDK with Oracle's JDK8. Although it seems like memory usage growth is a bit slower now, it still keeps growing. CPU usage still spikes on a cycle. I don't have any launcher flags, so I don't think it's a matter of me having the wrong configuration.