1

Java problem? HEPL MEH! :)

TaNzU_1o •10/9/14 1:55 pm
•
3.1k
•
10/16/2014 1:07 pm
I've had some problems with running minecraft lately because it keeps running out of memory when I start loading new chunks. After 1.8 version of the game I played a little while then I stopped playing for couple weeks but when I came back to play the game It wouldn't work. (When the game stopped working I was using the exact same version of java and the game as I was before.) Here is the part of the crash report that I think explains my problem: (I had to actually use F3+c to crash the game and get the crash report otherwise the game would just kept lagging and I would get like 1 fps)

-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_67, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 8101352 bytes (7 MB) / 523501568 bytes (499 MB) up to 523501568 bytes (499 MB)
JVM Flags: 7 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Xmx512M
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: GeForce GTX 780/PCIe/SSE2 GL version 4.4.0 NVIDIA 344.11, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)

I have 8Gb of ram but minecraft only uses 499Mb of it even though I have told it to use 4Gb (-Xmx4G) and that -Xmx512M after it I can not change from the launcher so I think it picks that up from java's own settings so where could I possibly change that?

And I actually found a fix for this... sort of. To fix this I had to uninstall and install java again twice and restart my computer after each time... but when I started playing next day it was broken again.

I hope you could at least try to help me with this and I could get back to playing minecraft.

Thanks!
Posted by
TaNzU_1o
Level 1 : New Crafter
0

  Have something to say?

Join • Sign in

38

DeleteThisPleaseThan
• 10/09/2014 2:39 pm
• Level 19 : Journeyman Wolf Whisperer
From the looks of it. Not your issue.
The heap size is there to provide "memory" minecraft can use.
my assumption is something was to be calculated and it would of flooded your memory, causing it to crash.
English: Programming flaw possibly.
1
TaNzU_1o
• 10/09/2014 2:47 pm
• Level 1 : New Crafter
It didn't crash... I crached it. I still think it's java's fault
1
DeleteThisPleaseThan
• 10/09/2014 2:55 pm
• Level 19 : Journeyman Wolf Whisperer
"I've had some problems with running minecraft lately because it keeps running out of memory when I start loading new chunks."
Is what I was referring to, if you are using stock minecraft and an extended heap. its not your issue.
1
TaNzU_1o
• 10/09/2014 3:02 pm
• Level 1 : New Crafter
Could it actually be something to do with the minecraft laucher itself because I didn't update Java or minecraft. But I think my laucher version was 1.3.1 When it was working and now it is 1.5.3
1
lobberhead
• 10/09/2014 3:08 pm
• Level 9 : Apprentice Narwhal
allocate RAM to it? For dedicating ram, the end one use Xms not Xmx
I have 12GB ram and i dedicate 2GB to minecraft and i have Nvidia Geforce 740 graphics
this is what i use...
-Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xms1G
Try that? You don't want to overload minecraft with loads of RAM, 2-4GB is fine for minecraft, cause you need atleast 1-2GB for your OS now...
1
TaNzU_1o
• 10/09/2014 3:13 pm
• Level 1 : New Crafter
That just gives me an error...

Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified
Picked up _JAVA_OPTIONS: -Xmx512M

...Java options???

And I have actually played before with minecraft running 4Gb and server running on the other 4Gb and windows was still fine
1
lobberhead
• 10/09/2014 5:02 pm
• Level 9 : Apprentice Narwhal
Have you tried downloading 64bit Java (latest version ovbs)?
1
TaNzU_1o
• 10/09/2014 5:09 pm
• Level 1 : New Crafter
'
Yes I have... this problem started when i was still using java 7 64-bit update 60 then when I went to update java I realized that I had 7 updates old version of it so I updated to java 7 64-bit update 67 but that didn't solve my problem.
1
2kewl4School56
• 10/09/2014 5:13 pm
• Level 2 : Apprentice Crafter
I made a vid a little back on this https://www.youtube.com/watch?v=nTwtnY7PfLM
Uninstall java.. then go to the links in the description, get the 32 bit (x86) then download the 64 bit version.. Hope this worked!


Edit: Sorry for self advertising.
1
TaNzU_1o
• 10/09/2014 5:17 pm
• Level 1 : New Crafter
Ok, I will try that... I will be back shortly
1
TaNzU_1o
• 10/09/2014 5:24 pm
• Level 1 : New Crafter
It works! for now... I think this is the exactly same way I fixed it the first time when I was messing around with it but I will be sure to tell if it stops working again
Thanks to all of you c:
1
TaNzU_1o
• 10/10/2014 8:09 am
• Level 1 : New Crafter
Aaaand... It doesn't work -.-
I guess I just have to install java every time I want to play
1
TaNzU_1o
• 10/11/2014 10:58 am
• Level 1 : New Crafter
I found a fix!!!!!!
Remember the old times before the new launcher??
I just made a .bat file and used the command: java -Xmx4096M -Xms4096M -jar Minecraft.exe and just launch the game with that.
1
anonpmc1202124
• 10/14/2014 2:44 pm
• Level 3 : Apprentice Miner
[deleted]
1
TaNzU_1o
• 10/14/2014 5:45 pm
• Level 1 : New Crafter
Well I found that some kind of a fix and I'm propably udgrading to windows 8.1 in the future so I think that will fix all of these problems. But I will be using this fix for now.
1
anonpmc1202124
• 10/16/2014 5:34 am
• Level 3 : Apprentice Miner
[deleted]
1
TaNzU_1o
• 10/16/2014 5:47 am
• Level 1 : New Crafter
New and clean windows installation will always fix problems like that if they aren't releated to hardware. And I'm really surprised that there are people who hate windows 8 or 8.1 because I personally find windows 8.1 really good and easy to use. + it is alot faster than windows 7 or older versions.
1
anonpmc1202124
• 10/16/2014 5:54 am
• Level 3 : Apprentice Miner
[deleted]
1
TaNzU_1o
• 10/16/2014 10:01 am
• Level 1 : New Crafter
No, my problem has something to do with java because installing java again makes the problem go away. but after I restart my pc it won't work before I uninstall and install java again.
And like I already said some people like me like the windows 8.1 more than the windows 7. It may not be you but I know that some people like it including me and couple of my friends.
1
Find Them Creepers
• 10/14/2014 2:49 pm
• Level 34 : Artisan Dragon
If you have 4/8GB RAM allocated to Minecraft, you're gonna have a bad time.
1
TaNzU_1o
• 10/14/2014 5:47 pm
• Level 1 : New Crafter
haven't had any bad time to this point and I have been doing that for over a year now
1
Find Them Creepers
• 10/14/2014 6:02 pm
• Level 34 : Artisan Dragon
Well, think of it this way. This is a terrible example, but we'll stick with it. Let's say you have a Nuclear Reactor that runs on Americium. If you didn't know, Americium is used for ionization smoke detectors. Know, let's say you split your amount of Americium 90/10, as in, 90% going to the reactor and 10% going to producing smoke detectors. You then switch is to 50/50, so you're making more smoke detectors. Now, your reactor has less fuel, and so it will produce less power.

If you don't want to read that terrible example, I'll summarize what I mean below...

The more RAM you take away from the system, eg., to Minecraft, the slower the system will be able to operate. If you allocate 4GB of RAM, Minecraft will barely more than 1GB of it, and you're system can't access the 4GB you allocated. This in turn will bottleneck the processes in the background, depending on how many processes you have running. Press CTRL + ALT + DELETE if you're on Windows and then start Task Manager. Click on Processes. It will show you the amount running, the total CPU usage, and the total RAM usage (Physical Memory).
1
TaNzU_1o
• 10/14/2014 6:05 pm
• Level 1 : New Crafter
Yup all the things that I already know... but as I have said I haven't had any problems with that and my minecraft uses 2gb+ and I would say I could get away with allocating 6-7gb to minecraft but in this case we can propably agree that would be just stupid.
1
Leeberator
• 10/14/2014 2:54 pm
• Level 47 : Master Button Pusher
Don't bother with an -Xms flag. Java will give itself the memory it needs as it needs it, up to the maximum set by the -Xmx flag.

Also, don't give more than 2 GB of memory to Minecraft. It won't need more than that unless you're running a ton of mods. Past a certain point you're just giving Java memory it won't use and taking memory away from the rest of your system which could use the memory.
1
TaNzU_1o
• 10/14/2014 5:55 pm
• Level 1 : New Crafter
I know what the -Xmx flag does... also my minecraft is using over 60% of that 4gb and I have always a lot of programs running on my computer at the background and still I haven't had any problems with not having enough memory... and I know I could use little bit less memory but it's other wise just there doing nothing.
1
Leeberator
• 10/14/2014 6:14 pm
• Level 47 : Master Button Pusher
I didn't say you didn't know what the -Xmx flag does; I only mentioned it to be specific on the source for Java's max heap size so I didn't sound like I wasn't sure what I was talking about. Would you rather have me say something ambiguous like "up to the maximum?"

Are you running any mods? If not, there's a serious memory leak problem with your installation of Minecraft and/or Java. If you are running mods, there's a serious memory leak problem with the mods you're using.
1
TaNzU_1o
• 10/14/2014 6:34 pm
• Level 1 : New Crafter
I'm sorry about that. I'm finnish so I can't always tell everything the way I really mean it. And it doesn't certainly help that I'm really tired right now. I hope you can forgive me
I'm not using any mods and i have installed both java and minecraft again multiple times after this problem started.
1
Leeberator
• 10/14/2014 7:01 pm
• Level 47 : Master Button Pusher
No worries.

Are you sure it's using 60% of the full 4 GB? It might just be using 60% of the current amount of memory it's given itself, which is less than the full 4 GB. Or, it could have allocated 60$ of the 4 GB to use even though it's not using all of that.

Can you post a screenshot of your debug screen?
1
TaNzU_1o
• 10/15/2014 10:15 am
• Level 1 : New Crafter
It was using everything between 15-70% at my short testing time... So yes I'm sure that it's using sometimes over 60% of that full 4GB. Allocated memory was 76% (3GB)

Here is the screenshot:
http://i.imgur.com/hu7QRiY.png

Information about the picture:
Render distance 16 ( I usually play with 16-24 )
Difficulty was peaceful ( So there was no mob ai used except maybe couple sheep )
All other settings pretty much as maximum
I tested all world types but that didn't make much difference ( except superflat )
1
Find Them Creepers
• 10/14/2014 2:58 pm
• Level 34 : Artisan Dragon
TheShadbusherDon't bother with an -Xms flag. Java will give itself the memory it needs as it needs it, up to the maximum set by the -Xmx flag.

Exactly. As Minecraft never uses more than 450MB for him, there no point having it higher than 1GB.
1
anonpmc844841
• 10/14/2014 7:03 pm
• Level 13 : Journeyman Miner
[deleted]
1
TaNzU_1o
• 10/15/2014 10:17 am
• Level 1 : New Crafter
I can't remove the other one (-Xmx512m or what ever) and it doesn't show on the JVM arguments.
1

Welcome