No matter how much memory I give to the game It runs out of heap space. It can't start with even 8GB of RAM, it just says "The game crashed whilst initializing game Error: java.lang.OutOfMemoryError: Java heap space"
No matter how much memory I give to the game It runs out of heap space. It can't start with even 8GB of RAM, it just says "The game crashed whilst initializing game Error: java.lang.OutOfMemoryError: Java heap space"
Please post the crash report, you can find it in .minecraft/crash-reports/
Look for the one that matches the date and time of when it occured.
Then upload the file somewhere.
---- Minecraft Crash Report ---- // Ooh. Shiny. Time: 1/6/18 5:05 PM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.OutOfMemoryError: Java heap space at cpw.mods.fml.common.LoadController.transition(LoadController.java:163) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:739) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:311) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:552) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:878) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.OutOfMemoryError: Java heap space at net.minecraft.client.renderer.texture.DynamicTexture.<init>(DynamicTexture.java:38) at net.minecraft.client.renderer.texture.DynamicTexture.<init>(DynamicTexture.java:27) at lotr.client.LOTRTextures.convertToSepia(LOTRTextures.java:272) at lotr.client.LOTRTextures.loadMapTextures(LOTRTextures.java:246) at lotr.client.LOTRTextures.func_110549_a(LOTRTextures.java:60) at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110542_a(SimpleReloadableResourceManager.java:130) at lotr.client.LOTRTextures.load(LOTRTextures.java:47) at lotr.client.LOTRClientProxy.onLoad(LOTRClientProxy.java:179) at lotr.common.LOTRMod.load(LOTRMod.java:4168) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 186328472 bytes (177 MB) / 536870912 bytes (512 MB) up to 536870912 bytes (512 MB) JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M -Xmx512M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 Optifine OptiFine_1.7.10_HD_U_E3 5 mods loaded, 5 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHI mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) UCHI FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1558-1.7.10.jar) UCHI Forge{10.13.4.1558} [Minecraft Forge] (forge-1.7.10-10.13.4.1558-1.7.10.jar) UCHI FastCraft{1.25} [FastCraft] (fastcraft-1.25.jar) UCHE lotr{Beta v33.4 for Minecraft 1.7.10} [The Lord of the Rings Mod] ([1.7.10] LOTRMod B33.4.jar) GL info: ' Vendor: 'Intel' Version: '3.1.0 - Build 9.17.10.4459' Renderer: 'Intel(R) HD Graphics 3000' OptiFine Version: OptiFine_1.7.10_HD_U_E3 Render Distance Chunks: 12 Mipmaps: 4 Anisotropic Filtering: 1 Antialiasing: 0 Multitexture: false Shaders: null OpenGlVersion: 3.1.0 - Build 9.17.10.4459 OpenGlRenderer: Intel(R) HD Graphics 3000 OpenGlVendor: Intel CpuCount: 4
Edit: added spoiler ~Milk
In some rare cases, a setting in windows may cause a maximum RAM limit that Minecraft can't override. This will give you instructions on how to fix this.
This tutorial is designed for windows 10, but the process should be fairly similar, if not identical, on windows 7 and 8. You will need administrator permissions to complete this tutorial.
Start by navigating to the environment variables. You can find them like so: Control Panel -> System and Security -> System -> Advanced System Settings -> Environment Variables.
Here you should see two boxes of variables for various programs, the top box is for user specific variables and the bottom for system-wide variables. Look for a variable related to java. Click on it and click edit. Remove the -Xmx512M that you should find in the edit box (If that's the only thing in the edit box, then just delete the variable entirely.). Then click Ok to save it.
Now that you've done that, the -Xmx2G that you put in your JVM arguments will now work correctly. Enjoy!