<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:00:46 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-3303] Java Memory Leaks</title>
                <link>https://bugs.mojang.com/browse/MC-3303</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;I bought a laptop a few months back that is more than capable of running Minecraft in 64bit. I can supply more specs if required.&lt;/p&gt;

&lt;p&gt;Whenever I boot Minecraft, javaw.exe takes up 400,000mb RAM (normal) and steadily climbs. In 15 minutes time, Java will have taken up all 8GB RAM, crashing my PC. Obviously this causes the frame rate to fluctuate. I have tried the following;&lt;/p&gt;

&lt;p&gt;*Limiting the amount of RAM Java can take up upon execution of an application&lt;br/&gt;
*Installing 64 bit or 32 bit versions of Java on my 64bit machine&lt;br/&gt;
*Switching off and on features in the game&lt;br/&gt;
*Re installation of Java&lt;br/&gt;
*Uninstalling any conflicting apps (but nothing else uses Javaw.exe)&lt;br/&gt;
*Putting javaw.exe to high and realtime priority&lt;br/&gt;
*Changing the active cores from 2 to 1&lt;br/&gt;
*Using the web based applet in case the launcher was causing the problem&lt;br/&gt;
*Rolling back Java RE versions (tried current stable release and Java Runtime 5 stable)&lt;/p&gt;

&lt;p&gt;None of this worked on vanilla Minecraft. Please help. There are other noted cases noted here (&lt;a href=&quot;http://www.minecraftforum.net/topic/1335721-minecraft-125-memory-leak/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.minecraftforum.net/topic/1335721-minecraft-125-memory-leak/&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Once again, please help. You can probably guess how desperate I am to play Minecraft again after my last computer broke.&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;br/&gt;
Jack&lt;/p&gt;</description>
                <environment></environment>
        <key id="15291">MC-3303</key>
            <summary>Java Memory Leaks</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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="drbravo">Jack Caldwell</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Nov 2012 19:17:48 +0100</created>
                <updated>Wed, 9 Jul 2014 16:47:03 +0200</updated>
                            <resolved>Wed, 9 Jul 2014 16:47:03 +0200</resolved>
                                    <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.5</version>
                    <version>Minecraft 1.7.4</version>
                                                                        <votes>4</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="172064" author="jar_" created="Wed, 9 Jul 2014 16:46:48 +0200"  >&lt;p&gt;This ticket is &lt;em&gt;incomplete&lt;/em&gt; without the requested information, no response has been received within a reasonable time and we are assuming the issue has been resolved. If you are still experiencing this issue, we can reopen it at your request.&lt;/p&gt;

&lt;p&gt;Please review the &lt;a href=&quot;http://help.mojang.com/customer/portal/articles/801354-writing-helpful-bug-reports-for-minecraft&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;guidelines&lt;/a&gt; before reporting issues.&lt;/p&gt;</comment>
                            <comment id="155889" author="jar_" created="Tue, 6 May 2014 13:19:36 +0200"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;14w18a&lt;/b&gt; / Launcher version &lt;b&gt;1.3.11&lt;/b&gt; or later? If so, please &lt;em&gt;update the affected versions&lt;/em&gt; in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="132713" author="heybillymayeshere" created="Sun, 19 Jan 2014 01:06:24 +0100"  >&lt;p&gt;Yes, this is a concern in 1.7.4 as well. I have an 8GB ram and 64 bit java all running every other app fine for extensive periods, but Minecraft leaks really badly after about 15 mins. I have to keep leaving and opening up task manager in Windows 7 and keep ending process even after I quit the game, it still runs out of control. allocating more memory won&apos;t solve it either. it prolongs the inevitable which is worthless. I really checked up on everything with javaw and nothing else but Minecraft causes this to happen. I run the most basic simple default instllment of vanilla Minecraft too. nothing special. still happens. &lt;/p&gt;</comment>
                            <comment id="121417" author="talven81" created="Tue, 26 Nov 2013 20:49:37 +0100"  >&lt;p&gt;Is this still a concern in the &lt;em&gt;current Minecraft version&lt;/em&gt; &lt;b&gt;1.7.2&lt;/b&gt; / Launcher version &lt;b&gt;1.3.4&lt;/b&gt; ? If so, please &lt;em&gt;update the affected versions&lt;/em&gt; in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.&lt;/p&gt;</comment>
                            <comment id="98137" author="grave" created="Sun, 11 Aug 2013 07:36:44 +0200"  >&lt;p&gt;I&apos;m also having major major memory leaks in 1.6.2. I&apos;ve had this since 1.6.1, and it happened more when I had lots of mobs in water/severe amounts of particles. Now in 1.6.2 and launcher version 1.2.1, I&apos;m having severe memory leaks of 200mb in seconds. Minecraft wasn&apos;t like this until 2-3 weeks ago, max (hadn&apos;t been playing due to massive lag regardless of memory leak).&lt;/p&gt;

&lt;p&gt;I&apos;m running Windows 7 64bit, Java 7 Update 25 for both 32 and 64-bit versions. Doesn&apos;t matter what settings I have in-game. &lt;/p&gt;</comment>
                            <comment id="68843" author="JIRAUSER24171" created="Sun, 26 May 2013 11:15:54 +0200"  >&lt;p&gt;It might be worthwhile to get a Program such as IOit&apos;s SmartRAM to clear up RAM automatically so it keeps Java&apos;s memory usage at a minimum.&lt;/p&gt;

&lt;p&gt;This is defiantly a memory leak of sorts.&lt;/p&gt;</comment>
                            <comment id="59015" author="guysimtristan" created="Sat, 6 Apr 2013 05:21:07 +0200"  >&lt;p&gt;Same problem...I have 3 gb usable ram minecraft uses all of it &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;(((&lt;/p&gt;</comment>
                            <comment id="58858" author="grum" created="Thu, 4 Apr 2013 21:10:12 +0200"  >&lt;p&gt;So if you do a clean install of minecraft, no custom texturepack, standing still in a flat world, memory will just run out of control?&lt;/p&gt;

&lt;p&gt;Would you mind taking a snapshot of the memory using jvisualvm ? (Just a little program you can point at a java program, attach and get information from it). I&apos;m almost sure the leak is not of the actual VM. This would just leave broken graphic drivers, but as said before, its likely more people would have this problem then.&lt;/p&gt;

&lt;p&gt;Also, what good would porting Minecraft to C++ do?&lt;/p&gt;</comment>
                            <comment id="58854" author="drbravo" created="Thu, 4 Apr 2013 20:37:28 +0200"  >&lt;p&gt;Yeah, I&apos;m sure it&apos;s a true leak as it doesn&apos;t stabilise. It does as I say stop now around 1.5GB - 2GB depending but the performance will be so poor it&apos;s unplayable as seen in the screenshots.&lt;/p&gt;

&lt;p&gt;Okay, thanks for your help guys. I guess I&apos;ll try asking someone at a Java forum or StackExchange - will report back any findings here.&lt;/p&gt;

&lt;p&gt;Would be interesting if any other X54c users experience the same problem (hopefully this will now appear high in search rankings) so we know if it&apos;s a a specific piece of hardware.&lt;/p&gt;

&lt;p&gt;I could also pray Mojang release a C++ port :O&lt;/p&gt;

&lt;p&gt;Cheers again&lt;/p&gt;</comment>
                            <comment id="56395" author="bugi74" created="Fri, 22 Mar 2013 21:01:01 +0100"  >&lt;p&gt;Jack, as CubeTheThird explained a bit...&lt;/p&gt;

&lt;p&gt;The number reported in the Minecrat client is the java&apos;s &quot;heap&quot; memory; it contains the allocated java objects (and maybe stacks, too, can&apos;t remember), whether still in use or as-of-yet-uncollected &quot;garbage&quot;, and memory that has already been requested from the OS, but not in use for the java objects at that moment.&lt;/p&gt;

&lt;p&gt;But Java will also need memory for its own internal stuff (&quot;JVM&quot;) and for bunch of other things (like auxiliary data structures used for garbage collection); these are allocated outside that &quot;heap&quot;, but they still show as being reserved by the java-process (when looked in task manager or such). It will typically also include things reserved by libraries loaded and used by the application (e.g. if some sound/graphics software has its own data structures).&lt;/p&gt;

&lt;p&gt;That is why the value reported by operating system will be always higher. It is quite normal for that extra to be few hundred MBs. (I was a bit surprised to see my own results of upto 700MB extra, but since the usage somewhat stabilized there, I don&apos;t think it is leaking for me, or if it is, too slowly for me to spot).&lt;/p&gt;

&lt;p&gt;If it is a true leak (in the JVM or external piece of software), the value reported by the OS will continue to grow. Such thing can not be fixed by Mojang, though it is always good to try and find the piece of code (or even hardware setup) that is doing it.&lt;/p&gt;</comment>
                            <comment id="56393" author="drbravo" created="Fri, 22 Mar 2013 20:59:04 +0100"  >&lt;p&gt;Forced crash on Minecraft after 20 seconds or so gameplay.&lt;/p&gt;</comment>
                            <comment id="56392" author="drbravo" created="Fri, 22 Mar 2013 20:58:31 +0100"  >&lt;p&gt;My bad, Tails. Real Crash report is uploaded now.&lt;/p&gt;

&lt;p&gt;Cube, how much memory would you recommend allocating? I&apos;ve tried 300MB, 400MB and 800MB limits but will completely bypass this limit.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="56319" author="cubethethird" created="Fri, 22 Mar 2013 16:47:37 +0100"  >&lt;p&gt;Because, as it says in your screenshot, a maximum of 900mb can be used, it&apos;s possible java has reserved memory should this amount be needed. If that is the case, it&apos;s not that surprising to see the actual memory consumption higher than the allocated amount (what with the java virtual machine and garbage collection to handle). That being said, it is still possible excessive memory is being used. If you execute Minecraft, allocating less memory than the normal amount, does this make any difference to the process size?&lt;/p&gt;</comment>
                            <comment id="56313" author="bljat" created="Fri, 22 Mar 2013 16:12:54 +0100"  >&lt;p&gt;A full error report has been saved to C:\Users\Owner\AppData\Roaming\.minecraft\crash-reports\crash-2013-03-22_15.07.23-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="56312" author="drbravo" created="Fri, 22 Mar 2013 16:11:57 +0100"  >&lt;p&gt;Tails - I have now attached the crash report. This report was generated just after MC booted up so will not show a huge amount of RAM eaten.&lt;/p&gt;

&lt;p&gt;Markku - That&apos;s what I&apos;m wondering. Does anyone have a different Java applet I could run so see if it&apos;s the same results (if so, obv wouldn&apos;t be a MC problem). I can&apos;t think of anything else that uses it right now.&lt;/p&gt;

&lt;p&gt;CubeTheThird - I can&apos;t get it to go over 1.4gb any more (just fluctates above the mark pictured). Considering this picture shows &quot;memory used&quot; in the Minecraft window a completely separate number from the task manager, it&apos;s looking likely it&apos;s a Java issue and I may need to take it to Oracle.&lt;/p&gt;

&lt;p&gt;Thanks for your guys continued support. Much appreciated.&lt;/p&gt;</comment>
                            <comment id="56152" author="cubethethird" created="Thu, 21 Mar 2013 23:06:36 +0100"  >&lt;p&gt;This is true. You say this crashes your computer?&lt;/p&gt;</comment>
                            <comment id="56094" author="jhnny" created="Thu, 21 Mar 2013 19:07:43 +0100"  >&lt;p&gt;I would like to point out that the attached screenshot shows 800+ MB of memory, not 8GB. 863,552KB == 843.3125MB This is quite a bit less than 1GB == 1,048,576Kb.&lt;/p&gt;</comment>
                            <comment id="49662" author="bugi74" created="Mon, 4 Mar 2013 19:50:39 +0100"  >&lt;p&gt;That issue sounds like a leak in native code (i.e. inside JRE, drivers, LWJGL native parts, ...). When the JRE has been set an upper limit of like 1G, the memory for java-code should not be able to get past that limit, not even when garbage collection is being flunky; all one would get is java&apos;s own out of memory -exception.&lt;/p&gt;

&lt;p&gt;Leak being in the native code might explain why so few experience it. It might only appear with specific hardware setup and Minecraft just happens to hit the right (or wrong) spot.&lt;/p&gt;

&lt;p&gt;If the leak was in Minecraft&apos;s java code, &lt;span class=&quot;error&quot;&gt;&amp;#91;almost&amp;#93;&lt;/span&gt; everyone would be experiencing the problems. That is, getting OOM exceptions/crashes, but not the full 8GB used.&lt;/p&gt;

&lt;p&gt;Nevertheless, would be nice to nail the reason, if for nothing else than to warn others about the specific hardware setup (or whatever the reason is found to be) somewhere.&lt;/p&gt;</comment>
                            <comment id="49617" author="bljat" created="Mon, 4 Mar 2013 18:06:21 +0100"  >&lt;p&gt;Please force a crash by pressing F3 + C for 10 seconds while ingame and attach the crash report here.&lt;/p&gt;</comment>
                            <comment id="49615" author="drbravo" created="Mon, 4 Mar 2013 18:01:40 +0100"  >&lt;p&gt;Still a problem. Tried launching in launcher which gives option to limit memory - completely ignores it.&lt;/p&gt;

&lt;p&gt;Been 7 months unable to play Minecraft now ;(&lt;/p&gt;

&lt;p&gt;Attached screenshot is about 4 minutes after launch&lt;/p&gt;

&lt;p&gt;For reference, laptop is part of the Asus x54c series. Specs in original post.&lt;/p&gt;</comment>
                            <comment id="22722" author="drbravo" created="Sat, 17 Nov 2012 23:58:19 +0100"  >&lt;p&gt;Like I say, it doesn&apos;t matter how much it has allocated. Even if I do try starting it with a custom launcher that limits the RAM allocated to, say 800MB, Javaw.exe will still go right over this.&lt;/p&gt;

&lt;p&gt;It&apos;s completely vanilla using the Minecraft launcher to start, but the web interface makes no difference. If you goto the link in my original post, some people are speculating it may be the garbage collector not functioning properly. If this is the case, it is out of the end users control.&lt;/p&gt;

&lt;p&gt;Thanks for your replys, guys. I do appreciate this.&lt;br/&gt;
Jack.&lt;/p&gt;</comment>
                            <comment id="22713" author="grum" created="Sat, 17 Nov 2012 23:36:50 +0100"  >&lt;p&gt;Minecraft doesn&apos;t get 8gb ram allocated. How are you starting it? Must be either a custom commandline or launcher.&lt;/p&gt;</comment>
                            <comment id="22622" author="drbravo" created="Sat, 17 Nov 2012 20:14:30 +0100"  >&lt;p&gt;For some reason, this bug is listed as minor. It is not for me as this has persisted since August 2012 when I got this laptop and there are many similar problems around the web saying that it breaks peoples games. There is a link in my first post.&lt;/p&gt;</comment>
                            <comment id="22611" author="drbravo" created="Sat, 17 Nov 2012 19:42:01 +0100"  >&lt;p&gt;Specs are as follows:&lt;/p&gt;

&lt;p&gt;Laptop name: ASUS K54C&lt;br/&gt;
Processor -  Intel Pentium CPU B960 @ 2.20GHz&lt;br/&gt;
OS: Windows 7 Home Premium 64 Bit&lt;br/&gt;
RAM: 8GB  (Total physical memory 7.91GB)&lt;br/&gt;
Availible Virtual Memory: 12.9GB&lt;br/&gt;
Graphics: Intel &quot;HD&quot; on-board GPU&lt;/p&gt;

&lt;p&gt;As stated, Java tried has been Java 7 Update 9 (latest)and I also tried Java 5 (without updates) but got the same results.&lt;/p&gt;</comment>
                            <comment id="22603" author="cubethethird" created="Sat, 17 Nov 2012 19:24:04 +0100"  >&lt;p&gt;Please post some relevant information. What are your computer specs? What version(s) of java are you installing?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="25795" name="MC Crash Report for Tails.rtf" size="5296" author="drbravo" created="Fri, 22 Mar 2013 16:10:43 +0100"/>
                            <attachment id="23413" name="Minecraft going mad.png" size="553877" author="drbravo" created="Mon, 4 Mar 2013 18:01:26 +0100"/>
                            <attachment id="25796" name="Over 1GB CubeTheThird.png" size="925763" author="drbravo" created="Fri, 22 Mar 2013 16:10:43 +0100"/>
                            <attachment id="25822" name="crash-2013-03-22_15.07.23-client.txt" size="4192" author="drbravo" created="Fri, 22 Mar 2013 20:59:04 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 17 Nov 2012 19:23: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_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0mzdz:</customfieldvalue>

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