<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 11:52:26 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[MC-851] Memory Leak</title>
                <link>https://bugs.mojang.com/browse/MC-851</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;After running a 1.4.2 server for a while i have to restart the server cause the memory reached 100% on a 4 gig server with 8 people on it&lt;/p&gt;</description>
                <environment></environment>
        <key id="12131">MC-851</key>
            <summary>Memory Leak</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="moxzot">Brian Neal</reporter>
                        <labels>
                    </labels>
                <created>Sat, 27 Oct 2012 09:24:26 +0200</created>
                <updated>Fri, 4 Aug 2017 07:20:39 +0200</updated>
                            <resolved>Thu, 22 Nov 2012 22:18:39 +0100</resolved>
                                    <version>Minecraft 1.4.2</version>
                                    <fixVersion>Minecraft 1.4.5</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="31003" author="dlminecr" created="Thu, 27 Dec 2012 13:45:08 +0100"  >&lt;p&gt;Rather odd how it works but anyway it just the way it is. I was just a little worried java would use up all my memory and keep shutting itself down.&lt;/p&gt;</comment>
                            <comment id="31001" author="kumasasa" created="Thu, 27 Dec 2012 13:40:20 +0100"  >&lt;p&gt;That&apos;s how the allocator of Java works: Freed memory is not really freed, only when the amount of maximum memory is reached, the gargabe collector kicks in.&lt;br/&gt;
I see when -Xmx512m is given, it will allocate &amp;gt; 1GB.&lt;br/&gt;
But nevertheless, that all is not a Minecraft isssue, that&apos;s some OS and/or Java issue.&lt;/p&gt;</comment>
                            <comment id="30998" author="dlminecr" created="Thu, 27 Dec 2012 13:30:21 +0100"  >&lt;p&gt;But when I start the world task manager is well under 1 gb. And even when I allocate minecraft with only 500 mb task manager shows it going over that limit.&lt;/p&gt;</comment>
                            <comment id="30991" author="kumasasa" created="Thu, 27 Dec 2012 10:38:22 +0100"  >&lt;p&gt;The task manager shows the amount of memory assigned to the JVM, which is always 1GB, see the command line paramter -Xmx1024m&lt;/p&gt;</comment>
                            <comment id="30990" author="dlminecr" created="Thu, 27 Dec 2012 10:35:59 +0100"  >&lt;p&gt;This issue still does not seem to be fixed. Minecraft&apos;s debug screen shows Minecraft using about 400 mb but in the windows task manager it shows it using up over 1 gb.&lt;/p&gt;</comment>
                            <comment id="24245" author="kumasasa" created="Thu, 22 Nov 2012 22:18:39 +0100"  >&lt;p&gt;Ok, thanks a lot for the update. &lt;/p&gt;</comment>
                            <comment id="24173" author="migerh" created="Thu, 22 Nov 2012 19:06:54 +0100"  >&lt;p&gt;After one week the server still runs. The memory consumption is slightly higher than with 1.4.2 but it is stable and the last 7 days it did not exceed 600MB.&lt;/p&gt;</comment>
                            <comment id="22392" author="migerh" created="Sat, 17 Nov 2012 00:45:55 +0100"  >&lt;p&gt;I&apos;m still testing and watching my server. Right now it looks like memory usage is increased in 1.4.4 compared to 1.4.2 but it doesn&apos;t look like there&apos;s something leaking. I&apos;ll keep an eye on my server and will update next weekend.&lt;/p&gt;</comment>
                            <comment id="22377" author="kumasasa" created="Sat, 17 Nov 2012 00:24:07 +0100"  >&lt;p&gt;Is this still a concern in the current Minecraft version? If so, please update the affected versions&lt;br/&gt;
in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="21714" author="migerh" created="Thu, 15 Nov 2012 09:21:52 +0100"  >&lt;p&gt;Possible duplicates: #1125 #2917; I&apos;m commenting here because it was the oldest report I could find.&lt;/p&gt;

&lt;p&gt;I&apos;m running the minecraft server for two players max on FreeBSD 9.1 with 4GB RAM. I tried several JVM: diablo 1.6.0, sun jdk 1.6.0, openjdk7, all compiled from the ports system. The server is currently running with jdk1.6.0 using&lt;/p&gt;

&lt;p&gt;JAVA_HOME=/usr/local/jdk1.6.0 java -Djava.security.egd=&lt;a href=&quot;file:/dev/random&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:/dev/random&lt;/a&gt; -Xmx2048M -Xms512M -jar minecraft_server.jar nogui&lt;/p&gt;


&lt;p&gt;Before Minecraft 1.4.2 I used weekly snapshots and every 3-4 days the server would crash with an out of memory exception. This bug was finally fixed with 1.4.2 and once I updated the server to 1.4.2 it ran without a single restart for 3 weeks. With 1.4.2 the server would consume ~150-200MB RAM while no one is logged in. Since yesterday I&apos;m running 1.4.4 and the server is showing similar symptoms as it did with pre-1.4.2 versions: After a fresh start consuming at least 300MB RAM, when two people log in it jumps up and won&apos;t go below 500MB after they logged out. But I guess it&apos;s too soon to draw any conclusions.&lt;/p&gt;</comment>
                            <comment id="19367" author="moxzot" created="Thu, 8 Nov 2012 04:48:08 +0100"  >&lt;p&gt;Well if you say it should be fixed ill take your word on it.&lt;/p&gt;</comment>
                            <comment id="19260" author="kumasasa" created="Wed, 7 Nov 2012 21:59:39 +0100"  >&lt;p&gt;Can anyone confirm this issue ?&lt;br/&gt;
That was a bug in 1.4.1, but should be fixed in 1.4.2&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="12432">MC-1125</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14786">MC-2917</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 16 Nov 2012 20:17:00 +0100</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Unconfirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10501" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Game Mode</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10304"><![CDATA[Survival]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i05uuv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>