There is Insufficient Memory for the Java Runtime Environment to Continue Minecraft
- Search
- Tools
Insufficient Memory! :( Please Help!
- |<<
- <
- >
- >>|
- 1
- 2
- Next
- |<<
- <
- >
- >>|
Source: https://www.minecraftforum.net/forums/support/server-support-and/2501349-insufficient-memory-please-help
#1 Aug 13, 2015
When I run my server and join I am getting a server error that I never have seen before and I don't know how to resolve this error !
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 1427696 bytes for Chunk::
If you can help me solve my problem I will leave a follow and the best answers might earn a rank on my server !
Thank you so so much!
Any questions are free to be asked !
Rollback Post to Revision RollBack
#3 Aug 13, 2015
Okay but how would I know how much megabytes is necessary? And Yes I am running it from a .bat file.
Oh, and thanks for replying!
Rollback Post to Revision RollBack
#5 Aug 13, 2015
I tried that and went on the server and it seemed to be working fine but with some lag and it started to load chunks and I got the same error again.
Rollback Post to Revision RollBack
#7 Aug 13, 2015
This Thread May Be Resolved But If You Increase The Memory mabey like 2 more GB (Depending of your ram size), you should be fine.
Rollback Post to Revision RollBack
#8 Aug 13, 2015
Rollback Post to Revision RollBack
#9 Aug 13, 2015
In the world is just my server spawn which isn't that big at all, but the spawn loads fine but when I go out further into the world I will get the error message. But I just re-opened the server again and right away it got the error message again, maybe the server needs more space?
Rollback Post to Revision RollBack
#11 Aug 13, 2015
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 782336 bytes for Chunk::new
# Possible reasons:
# The system is out of physical RAM or swap space
# In 32 bit mode, the process size limit was hit
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Use 64 bit Java on a 64 bit OS
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (allocation.cpp:390), pid=5432, tid=3424
#
# JRE version: Java(TM) SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b03 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
Rollback Post to Revision RollBack
#13 Aug 13, 2015
I opened the server and right away the server error popped up so I'm gonna try to give it 3 gb then
Rollback Post to Revision RollBack
#14 Aug 13, 2015
Now I gave it 3 gb, heres what it says in my start.bat
@echo off
java -Xms3072M -Xmx3072M -jar craftbukkit.jar
pause
Now I'm getting this server error,
Error occurred during initialization of VM
Could not reserve enough space for object heap
Press any key to continue . . .
Rollback Post to Revision RollBack
#15 Aug 13, 2015
maybe its the server space in general not just the space for the world?
Rollback Post to Revision RollBack
#17 Aug 13, 2015
I have 11 plugins installed, maybe java doesn't have enough dedicated space?
Rollback Post to Revision RollBack
#19 Aug 13, 2015
I removed the larger plugins like Factions & MassiveCore (required for factions) the server still has 3 gb and I'm getting the same error
Rollback Post to Revision RollBack
#21 Aug 13, 2015
I only have 2 worlds but I cant go on the server at all now, right when I open the server the console just says the error.
Rollback Post to Revision RollBack
#22 Aug 13, 2015
Ok now, I dedicated more space to Java and the server opened! But now my minecraft is crashing and I cant get on mc with the same error I got in the first place.
Rollback Post to Revision RollBack
#24 Aug 13, 2015
if you go on the mc launcher, In edit profile, you can give more space to MC should I do that, on default MC has 1 GB
Rollback Post to Revision RollBack
#25 Aug 13, 2015
A crash report could help.
Rollback Post to Revision RollBack
#26 Aug 13, 2015
Minecraft isn't even opening now, I'm gonna try to reinstall it I guess
Rollback Post to Revision RollBack
#27 Aug 13, 2015
sounds like you may have a virus or something if the problem persists run a virus checker.
Rollback Post to Revision RollBack
#28 Aug 13, 2015
it seems that its either have the server or mc open either one, but not them both at the same time Any help? what do you guys recommend I do?
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 8/13/15 12:45 PM
Description: Initializing game
java.lang.OutOfMemoryError: Initializing game
at sun.misc.Unsafe.allocateMemory(Native Method)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:127)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at avd.c(SourceFile:37)
at bfd.<init>(SourceFile:37)
at bfx.<init>(SourceFile:17)
at bfx.<clinit>(SourceFile:10)
at ave.a(SourceFile:753)
at ave.am(SourceFile:384)
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at sun.misc.Unsafe.allocateMemory(Native Method)
at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:127)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at avd.c(SourceFile:37)
at bfd.<init>(SourceFile:37)
at bfx.<init>(SourceFile:17)
at bfx.<clinit>(SourceFile:10)
at ave.a(SourceFile:753)
at ave.am(SourceFile:384)
-- Initialization --
Details:
Stacktrace:
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
-- System Details --
Details:
Minecraft Version: 1.8.8
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: 64632592 bytes (61 MB) / 181960704 bytes (173 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 1.8.8
LWJGL: 2.9.4
OpenGL: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 10.18.10.4252, Intel
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: No
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: default3dmodelsv288730061.zip, faithful32pack.zip, [1.8.7]Dramatic Skys [v1.5].zip
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 4x Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
What virus check do you recommend and I think that may be the issue cause I have been having some issues with my computer lately
Rollback Post to Revision RollBack
#29 Aug 13, 2015
jcgminecraft, I cant try another world because I cant get on mc when the server is open, it seems that I can only have the server or mc open but not on at the same time, if I have mc open and I open the server, the server crashes, vice versa
Rollback Post to Revision RollBack