(Ignore the warning that the motherboard and CPU are incompatible, it definitely works)
After I run minecraft, it loads when my RAM reaches around 1.1 gb of ram, then from there in both Singleplayer and Multiplayer as i play, it progressively rises and rises until it reaches 4gb or even 5gb and my system freaks out.
Below in the attachments is when I initially load Minecraft, and then after 5 minutes of walking around.
It seems to go up when i roam and walk around, meaning it does this while it is rendering chunks.
It tends to go up by increments of 5-40mb every second, and sometimes it rarely goes up and then there are sudden dramatic rises.
What I have tried:
Multiple versions of Minecraft, 1.7.10, 1.7.9, 1.7.2, 1.6.4
I have tried both default launcher and Magic Launcher
I have tried limiting the java heap with -xmx1024m on both launchers along with the built in java allocation feature in Magic Launcher
I have tried other java tweaks such as -Xbatch and -Xincgc
I have tried default texture pack and 256x256 texture pack
I have tried Forge 1.7.10 latest, and also without it,
I have tried Optifine, by itself, integrated into minecraft.jar, with Forge, and without it
Multiple versions of java both 32 bit and 64 bit, such as java 7 updates 55, 60, and 65, and even the Beta Java 8 update 14.
Please help as this makes my Minecraft requiring frequent restarts just to play. Gameplay wise I run 60+ fps with Extreme render distance, Maxed settings, 256x256 px texture pack, and Sonic Ether's Unbelievable Shaders. I believe hardware is not the issue. Oh, and i run Windows 8.1 Pro 64 bit.
UPDATE 2: I have heard this can possibly be a Windows 8.1 issue, that some applications such as Java have memory leaks on this platform. If anybody who also has 8.1 or any version/edition also has this issue, please let me know.
UPDATE 4: After a longer than average Minecraft session my RAM allocation exceeded 8gb of RAM, just in case anyone wondered if this RAM allocation stopped at a certain point or wanted to know how much it can go. This indeed does not stop until not enough RAM in my system can be provided and I MUST close Minecraft and restart it.
Java will not allocate more than the specified maximum heap. It reuses it or dies with an OutOfMemoryException depending upon whether or not it really needs more than the max heap or not.
If your heap is set to something reasonable, like 1-2G, then the leaking is happening in native code via native memory allocation and the number one primary suspect for that would be the video driver that you have installed. You can either try to find a newer / older video driver that does not have this behavior, or you could experiment and see if the bug is happening only when you have certain video options in minecraft selected.
I have the latest Nvidia GeForce 337.88 Drivers for my GTX 770, but I will try an older Graphics Driver and post my results. I will also try re-updating my LWJGL files but im pretty sure the Minecraft Client has the latest ones by default.
UPDATE 5: Correction to above, The drivers I had were actually the 340.43 Drivers, which are still beta, but I DOWNGRADED to the release/stable 337.88 Drivers. Unfortunately there is still no fix. I will be checking up on the LWJGL files still and also tweak around the graphics settings. Any help will be much appreciated.
UPDATE 7: I have changed to numerous different video settings via Minecraft AND my Nvidia Control Panel, including everything at minimum, maximum, and random tweaks in between. None have created any change. On the plus side, I enabled native 8x MSAA through Minecraft and now it looks much cleaner and nice ^-^
Searching on Google or other forums only leads to people who had issues with their SERVERS as opposed to client RAM issues, so I cannot find a solution elsewhere. Any help would be appreciated.
Please read my post again. If the Java process size grows to more than around 0.5G larger than your max configured heap size (1G by default, did you change it?), then the leak is happening in native code.
Yes, i had the java heap size configured as 512mb and 1024mb and the problem persists. If you read my responses and updates I have already tried downgrading my graphics card drivers and I also took your advice on slowly toggling off all video settings one by one to narrow the issue down to one setting. I apologize if i overlooked anything but that is what your post said I need to do to stop the leak through native code.
It's unfortunately that you weren't able to figure out a problem with your video driver that was easy to solve. Nonetheless the problem is with native code somewhere, and you're unlikely to find an answer here.
It's possible that something has injected a DLL into your Java and it is this causing the trouble. Examples of such injected DLLs are bigfoot network drivers, in game chat systems, (some malware?). Both bigfoot and chat DLLs have caused crashes for users in the past.
You should post a dxdiag, and force a crash dump with F3+C [this will show the full list of DLLs being used]
I'm sure there are many other players who also have GTX 770s and have the latest drivers that do not have the same problem as I do, otherwise solutions would be more prominent on the web.
I will post a dxdiag and crash dump infolog when I get home, thank you.
Oh, and a small note, I get random lagspikes as I load chunks when my java heap size is 1024mb, but it disappears at 2048mb. Nonetheless I tried both to no avail, and RAM usage keeps climbing up. An important note is that the rate of RAM allocation that increases is lowered to 3-20mb per second. It also randomly lowers 50mb or so at times but that is probably java garbage collector and it has always done that since the beginning of my problem.
Here is my system Specs:
http://pcpartpicker.com/user/Gottsmillk/saved/tbpmP6
(Ignore the warning that the motherboard and CPU are incompatible, it definitely works)
After I run minecraft, it loads when my RAM reaches around 1.1 gb of ram, then from there in both Singleplayer and Multiplayer as i play, it progressively rises and rises until it reaches 4gb or even 5gb and my system freaks out.
Below in the attachments is when I initially load Minecraft, and then after 5 minutes of walking around.
It seems to go up when i roam and walk around, meaning it does this while it is rendering chunks.
It tends to go up by increments of 5-40mb every second, and sometimes it rarely goes up and then there are sudden dramatic rises.
What I have tried:
Multiple versions of Minecraft, 1.7.10, 1.7.9, 1.7.2, 1.6.4
I have tried both default launcher and Magic Launcher
I have tried limiting the java heap with -xmx1024m on both launchers along with the built in java allocation feature in Magic Launcher
I have tried other java tweaks such as -Xbatch and -Xincgc
I have tried default texture pack and 256x256 texture pack
I have tried Forge 1.7.10 latest, and also without it,
I have tried Optifine, by itself, integrated into minecraft.jar, with Forge, and without it
Multiple versions of java both 32 bit and 64 bit, such as java 7 updates 55, 60, and 65, and even the Beta Java 8 update 14.
Please help as this makes my Minecraft requiring frequent restarts just to play. Gameplay wise I run 60+ fps with Extreme render distance, Maxed settings, 256x256 px texture pack, and Sonic Ether's Unbelievable Shaders. I believe hardware is not the issue. Oh, and i run Windows 8.1 Pro 64 bit.
If your heap is set to something reasonable, like 1-2G, then the leaking is happening in native code via native memory allocation and the number one primary suspect for that would be the video driver that you have installed. You can either try to find a newer / older video driver that does not have this behavior, or you could experiment and see if the bug is happening only when you have certain video options in minecraft selected.
Small update: The 337.88 Drivers are technically "beta" but the changelog does not mention anything related to Minecraft or Java. Here it is below:
http://www.nvidia.com/download/driverResults.aspx/75991/en-us
Just to make sure I will downgrade my drivers to the previous version and re-check everything. Thanks for your help!
It's possible that something has injected a DLL into your Java and it is this causing the trouble. Examples of such injected DLLs are bigfoot network drivers, in game chat systems, (some malware?). Both bigfoot and chat DLLs have caused crashes for users in the past.
You should post a dxdiag, and force a crash dump with F3+C [this will show the full list of DLLs being used]
I will post a dxdiag and crash dump infolog when I get home, thank you.
Oh, and a small note, I get random lagspikes as I load chunks when my java heap size is 1024mb, but it disappears at 2048mb. Nonetheless I tried both to no avail, and RAM usage keeps climbing up. An important note is that the rate of RAM allocation that increases is lowered to 3-20mb per second. It also randomly lowers 50mb or so at times but that is probably java garbage collector and it has always done that since the beginning of my problem.