[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
openjdk-7-jre


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:
http://i4.minus.com/iyHGeTgrmQRQ3.png
after stopping the minecraft server, this happens:
http://i6.minus.com/ibjEuNlb8u9AG6.png

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:
http://i5.minus.com/iY47CO4rZKUNX.png

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.

Generated at Sun Jan 12 12:23:45 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.