[MC-10249] Memory leak Created: 24/Feb/13 Updated: 24/Feb/13 Resolved: 24/Feb/13 |
|
| Status: | Resolved |
| Project: | Minecraft: Java Edition |
| Component/s: | None |
| Affects Version/s: | Snapshot 13w07a |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Zipron Brendt | Assignee: | Unassigned |
| Resolution: | Invalid | Votes: | 0 |
| Labels: | leak, memory | ||
| Environment: |
Ubuntu server 12.04 LTS |
||
| Confirmation Status: | Unconfirmed |
| Description |
|
I've noticed the last two days that the minecraft server uses a lot of memory. I tested this by fully rebooting my server. After 5 hours of uptime with 10 players online, I encountered serious issues: Note that when the first screenshot was taken (with more than 80% mem usage) the minecraft server was totally empty, 0 players online. I don't know if this is a known issue, if it's a java problem or minecraft related. |
| Comments |
| Comment by Kumasasa [ 24/Feb/13 ] |
|
Absolute true after 1 minute run time. Garbage collection didn't start yet... |
| Comment by Zipron Brendt [ 24/Feb/13 ] |
|
not true. htop shows me the amount of RAM actually used, check this screnshot: this is 2gigs allocated, only 700megs used. |
| Comment by Kumasasa [ 24/Feb/13 ] |
|
What you are seeing is the memory allocated to the JVM and not the memory used my minecraft. Since you've started the JVM with -Xmx2G -Xms2G, the result is absolutely expectable. Help on debugging here http://www.oracle.com/technetwork/java/javase/memorymanagement-whitepaper-150215.pdf |
| Comment by Zipron Brendt [ 24/Feb/13 ] |
|
Just to avoid confusion: the user I run my server with is called bukkit, but this was the mojang 13w07a snapshot server used. |