More Info: How to Fix java.lang.OutOfMemoryError in Minecraft
Need Help? Click here for more information on How to Fix java.lang.OutOfMemoryError in Minecraft.
Need Help? Click here for more information on How to Fix java.lang.OutOfMemoryError in Minecraft.
Hello all,
So about a week ago I had set up a 1.10.1 vanilla server and it allowed up to 8 people to join at once. I began to get more crashes and time outs, just assumed it was my internet. But today they became very frequent and would crash when 2 or more people were online together. I saw there was an update to the servers and upgraded my server to 1.10.2 and the crashes still occur. I've tried to reduce the max block radius and the max ticks but I'm still not having any luck. Below is the most recent crash log and on the second spoiler has my PC information.
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 7/1/16 6:17 PM
Description: Exception in server tick loop
java.lang.OutOfMemoryError: Java heap space
at dr.a(SourceFile:138)
at atj.a(SourceFile:229)
at atj.a(SourceFile:104)
at lr.c(SourceFile:147)
at lr.a(SourceFile:166)
at ls.a(SourceFile:884)
at net.minecraft.server.MinecraftServer.a(SourceFile:372)
at net.minecraft.server.MinecraftServer.C(SourceFile:572)
at net.minecraft.server.MinecraftServer.run(SourceFile:458)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (x86) version 10.0
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 9616 bytes (0 MB) / 259522560 bytes (247 MB) up to 259522560 bytes (247 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
Profiler Position: N/A (disabled)
Player Count: 3 / 20; [lu['lilfino'/220, l='world', x=-8800.33, y=63.00, z=8869.92], lu['King_Rouen'/1002, l='world', x=2396.45, y=70.88, z=-4441.79], lu['aquis795'/2052, l='world', x=-1164.75, y=63.00, z=5568.33]]
Is Modded: Unknown (can't tell)
Type: Dedicated Server (map_server.txt)
Here is another crash log from yesterday
---- Minecraft Crash Report ----
// You should try our sister game, Minceraft!
Time: 6/30/16 7:11 PM
Description: Watching Server
java.lang.Error
at java.lang.Object.clone(Native Method)
at ct.values(SourceFile:14)
at aid.a(SourceFile:2119)
at aid.c(SourceFile:2145)
at aid.w(SourceFile:2090)
at asv.e(SourceFile:1080)
at asv.o(SourceFile:1013)
at asv.b(SourceFile:842)
at ls.j(SourceFile:373)
at ls.d(SourceFile:219)
at net.minecraft.server.MinecraftServer.D(SourceFile:618)
at ld.D(SourceFile:338)
at net.minecraft.server.MinecraftServer.C(SourceFile:554)
at net.minecraft.server.MinecraftServer.run(SourceFile:458)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server Watchdog
Stacktrace:
at java.lang.Object.clone(Native Method)
at ct.values(SourceFile:14)
at aid.a(SourceFile:2119)
at aid.c(SourceFile:2145)
at aid.w(SourceFile:2090)
at asv.e(SourceFile:1080)
at asv.o(SourceFile:1013)
at asv.b(SourceFile:842)
at ls.j(SourceFile:373)
at ls.d(SourceFile:219)
at net.minecraft.server.MinecraftServer.D(SourceFile:618)
at ld.D(SourceFile:338)
at net.minecraft.server.MinecraftServer.C(SourceFile:554)
-- Thread Dump --
Details:
Threads: "Netty Server IO #6" Id=32 RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
- locked io.netty.channel.nio.SelectedSelectionKeySet@1a49b42
- locked java.util.Collections$UnmodifiableSet@16375c6
- locked sun.nio.ch.WindowsSelectorImpl@15cf032
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...
"Netty Server IO #5" Id=31 RUNNABLE
at sun.nio.ch.SocketDispatcher.writev0(Native Method)
at sun.nio.ch.SocketDispatcher.writev(Unknown Source)
at sun.nio.ch.IOUtil.write(Unknown Source)
at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
- locked java.lang.Object@5e7ffd
at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:285)
at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:707)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.forceFlush(AbstractNioChannel.java:321)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:519)
...
"Netty Server IO #4" Id=30 RUNNABLE
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
- locked io.netty.channel.nio.SelectedSelectionKeySet@183833f
- locked java.util.Collections$UnmodifiableSet@15c16cc
- locked sun.nio.ch.WindowsSelectorImpl@16bb4b5
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...
"Netty Server IO #3" Id=29 RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
- locked io.netty.channel.nio.SelectedSelectionKeySet@7180b2
- locked java.util.Collections$UnmodifiableSet@11c74f8
- locked sun.nio.ch.WindowsSelectorImpl@efe3a1
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...
"Server Watchdog" Id=35 RUNNABLE
at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.dumpAllThreads(Unknown Source)
at le.run(SourceFile:43)
at java.lang.Thread.run(Unknown Source)
"Netty Server IO #2" Id=28 RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
- locked io.netty.channel.nio.SelectedSelectionKeySet@6f39d5
- locked java.util.Collections$UnmodifiableSet@3f5c7a
- locked sun.nio.ch.WindowsSelectorImpl@3856b1
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...
"Netty Server IO #1" Id=27 RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
- locked io.netty.channel.nio.SelectedSelectionKeySet@1f35dfc
- locked java.util.Collections$UnmodifiableSet@237886
- locked sun.nio.ch.WindowsSelectorImpl@293374
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...
"Netty Server IO #0" Id=26 RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
- locked io.netty.channel.nio.SelectedSelectionKeySet@f661de
- locked java.util.Collections$UnmodifiableSet@1d9cb01
- locked sun.nio.ch.WindowsSelectorImpl@fd6934
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:622)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:310)
...
"D3D Screen Updater" Id=24 TIMED_WAITING on java.lang.Object@1085d4c
at java.lang.Object.wait(Native Method)
- waiting on java.lang.Object@1085d4c
at sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
"DestroyJavaVM" Id=22 RUNNABLE
"Server thread" Id=20 RUNNABLE
at java.lang.Object.clone(Native Method)
at ct.values(SourceFile:14)
at aid.a(SourceFile:2119)
at aid.c(SourceFile:2145)
at aid.w(SourceFile:2090)
at asv.e(SourceFile:1080)
at asv.o(SourceFile:1013)
at asv.b(SourceFile:842)
...
"TimerQueue" Id=18 TIMED_WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@13f6b23
at sun.misc.Unsafe.park(Native Method)
- waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@13f6b23
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
at java.util.concurrent.DelayQueue.take(Unknown Source)
at javax.swing.TimerQueue.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Number of locked synchronizers = 1
- java.util.concurrent.locks.ReentrantLock$NonfairSync@1f2962
"Thread-4" Id=17 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@cc0279
at sun.misc.Unsafe.park(Native Method)
- waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@cc0279
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
at com.mojang.util.QueueLogAppender.getNextLogEvent(QueueLogAppender.java:77)
at lg$4.run(SourceFile:129)
at java.lang.Thread.run(Unknown Source)
"AWT-EventQueue-0" Id=16 RUNNABLE
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIManager.get(Unknown Source)
at javax.swing.border.TitledBorder.getPosition(Unknown Source)
at javax.swing.border.TitledBorder.paintBorder(Unknown Source)
at javax.swing.JComponent.paintBorder(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
...
"AWT-Windows" Id=14 RUNNABLE (in native)
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
"AWT-Shutdown" Id=13 WAITING on java.lang.Object@187c151
at java.lang.Object.wait(Native Method)
- waiting on java.lang.Object@187c151
at java.lang.Object.wait(Unknown Source)
at sun.awt.AWTAutoShutdown.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
"Java2D Disposer" Id=12 WAITING on java.lang.ref.ReferenceQueue$Lock@2ea57a
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@2ea57a
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at sun.java2d.Disposer.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
"Server Infinisleeper" Id=11 TIMED_WAITING
at java.lang.Thread.sleep(Native Method)
at ld$1.run(SourceFile:79)
"Snooper Timer" Id=10 TIMED_WAITING on java.util.TaskQueue@16a6ef
at java.lang.Object.wait(Native Method)
- waiting on java.util.TaskQueue@16a6ef
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
"Attach Listener" Id=5 RUNNABLE
"Signal Dispatcher" Id=4 RUNNABLE
"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@4bae5e
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.ReferenceQueue$Lock@4bae5e
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@1b3670f
at java.lang.Object.wait(Native Method)
- waiting on java.lang.ref.Reference$Lock@1b3670f
at java.lang.Object.wait(Unknown Source)
at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
Stacktrace:
at le.run(SourceFile:59)
at java.lang.Thread.run(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.10.1
Operating System: Windows 10 (x86) version 10.0
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 36737840 bytes (35 MB) / 259522560 bytes (247 MB) up to 259522560 bytes (247 MB)
JVM Flags: 0 total;
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
Profiler Position: N/A (disabled)
Player Count: 2 / 20; [lu['Kimmay'/190, l='world', x=-9171.98, y=69.00, z=9173.35], lu['King_Rouen'/436, l='world', x=4529.30, y=69.00, z=-4606.81]]
Is Modded: Unknown (can't tell)
Type: Dedicated Server (map_server.txt)
Thanks for the help in advance!
I've tried various of methods of allocating it but I am still not able to do so. Below is the .bat file im using to allocate more memory but I receive this error:
.bat file:
java -Xmx3072M -Xms3072M -jar minecraft_server.jar nogui
PAUSE
The error message:
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
I have a Windows 10 Asus M51AC Series i5 processor 8gb RAM and it is a 64 bit OS Grpahics: NVIDIA GeForce GTX 650
Thanks for the help!