mojira.dev
MC-130703

[18w22c] Exception in server tick loop java.lang.OutOfMemoryError: Java heap space

This is a hard one to diagnose. Running without any Xmx flags, Minecraft will use up all available memory and crash, failing to write a crash report.

Setting Xmx to 6GB , The server will again eventually crash. Finally getting a crash report. Seems a little short.

 

---- Minecraft Crash Report ----
 // You should try our sister game, Minceraft!
Time: 6/3/18 10:10 AM
 Description: Exception in server tick loop
java.lang.OutOfMemoryError: Java heap space
A detailed walkthrough of the error, its code path and all known details is as follows:
 ---------------------------------------------------------------------------------------
 System Details 
 Details:
 Minecraft Version: 18w22c
 Operating System: Windows 8.1 (amd64) version 6.3
 Java Version: 1.8.0_171, Oracle Corporation
 Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
 Memory: 117480000 bytes (112 MB) / 2985295872 bytes (2847 MB) up to 2985295872 bytes (2847 MB)
 JVM Flags: 0 total; 
 Profiler Position: N/A (disabled)
 Player Count: 5 / 100; [so['YT_Veritas0923'/3097547, l='world', x=9975.28, y=49.00, z=15.34], so['AhriEU'/3380965, l='world', x=9908.09, y=62.07, z=1768.95], so['SmaugTheStoner'/3600186, l='world', x=26989.24, y=68.00, z=24952.35], so['Sunshinerose6'/3570624, l='world', x=10005.30, y=60.00, z=21.30], so['CoolReign'/3725904, l='world', x=31023.41, y=64.00, z=-272.25]]
 Data Packs: vanilla, file/veritas0923 (incompatible), file/bac_advancements
 Is Modded: Unknown (can't tell)
 Type: Dedicated Server (map_server.txt)

 

This is what it looks like in console when it doesn't save a crash report.

[17:25:09] [User Authenticator #43/ERROR]: Caught previously unhandled exception :
[17:25:36] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.OutOfMemoryError: Java heap space
 at bqq.b(SourceFile:154) ~[minecraft_server.18w22c.jar:?]
 at bqv.a(SourceFile:621) ~[minecraft_server.18w22c.jar:?]
 at bqv.a(SourceFile:385) ~[minecraft_server.18w22c.jar:?]
 at bqv.a(SourceFile:216) ~[minecraft_server.18w22c.jar:?]
 at sl.b(SourceFile:217) ~[minecraft_server.18w22c.jar:?]
 at sl.a(SourceFile:237) ~[minecraft_server.18w22c.jar:?]
 at sm.a(SourceFile:737) ~[minecraft_server.18w22c.jar:?]
 at net.minecraft.server.MinecraftServer.a(SourceFile:445) ~[minecraft_server.18w22c.jar:?]
 at net.minecraft.server.MinecraftServer.v(SourceFile:644) ~[minecraft_server.18w22c.jar:?]
 at net.minecraft.server.MinecraftServer.run(SourceFile:531) [minecraft_server.18w22c.jar:?]
 at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
[17:26:01] [User Authenticator #43/ERROR]: java.lang.OutOfMemoryError: Java heap space
[17:26:03] [File IO Thread/ERROR]: Caught previously unhandled exception :
[17:26:04] [File IO Thread/ERROR]: File IO Thread
java.lang.OutOfMemoryError: Java heap space
 at java.io.BufferedOutputStream.<init>(Unknown Source) ~[?:1.8.0_171]
 at java.io.BufferedOutputStream.<init>(Unknown Source) ~[?:1.8.0_171]
 at bqz.b(SourceFile:225) ~[minecraft_server.18w22c.jar:?]
 at bra.e(SourceFile:119) ~[minecraft_server.18w22c.jar:?]
 at bqv.b(SourceFile:268) ~[minecraft_server.18w22c.jar:?]
 at bqv.a(SourceFile:251) ~[minecraft_server.18w22c.jar:?]
 at cgt.c(SourceFile:42) ~[minecraft_server.18w22c.jar:?]
 at cgt.run(SourceFile:35) ~[minecraft_server.18w22c.jar:?]
 at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
[17:30:34] [Server thread/ERROR]: Could not save crash report to .\crash-reports\crash-2018-06-02_17.27.24-server.txt
java.lang.OutOfMemoryError: Java heap space
 at java.util.Arrays.copyOfRange(Unknown Source) ~[?:1.8.0_171]
 at java.lang.String.<init>(Unknown Source) ~[?:1.8.0_171]
 at java.lang.StringBuilder.toString(Unknown Source) ~[?:1.8.0_171]
 at b.e(SourceFile:205) ~[minecraft_server.18w22c.jar:?]
 at b.a(SourceFile:223) [minecraft_server.18w22c.jar:?]
 at net.minecraft.server.MinecraftServer.run(SourceFile:554) [minecraft_server.18w22c.jar:?]
 at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]
[17:31:28] [Server thread/ERROR]: We were unable to save this crash report to disk.
[17:31:37] [Server thread/INFO]: Stopping server

Related issues

Comments

migrated

This ticket is invalid as it relates to a modified or third-party client, server, or launcher.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.

  • Any plugin issues need to be addressed to the creator of the plugin or resource pack.

  • This site is for addressing issues related to the base unmodded Minecraft; any modded system invalidates your ticket, unless the behavior can be reproduced without mods.

  • Additionally, if you have problems on large-scale modded servers, please report it to their site. It's probably not a bug in Minecraft.

-- I am a bot. This action was performed automagically!

migrated

... It is vanilla minecraft. Do tell me. How am I suppose to run mods with no mod loader ?

I've removed the datapacks (vanilla minecraft commands in a text file)

I'll have a new crash report and ticket for you within a few hours.

migrated

Indeed, vanilla.

migrated

Up to 2.1GB RAM usage on next instance (all datapacks disabled). It usually gets to around 3.3GB and then the CPU Usage goes to 100% and crash, CPU Usage currently normal, around 10% (It's an x4 4.0GHz, 16GB RAM avail, 6GB Allocated)

5 Players currently.

[Mod] Neko

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.

We do not have enough information to find the cause of this issue.
Please attach the full crash report (.minecraft/crash-reports/crash-<DATE>-client.txt) here.

If no crash report was created, please attach the launcher log (.minecraft/launcher_log.txt) here.

Once attached, the report will be reopened automatically.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

migrated

Crash Reports are not generated consistently due to the nature of this bug.

This is for a Minecraft dedicated server. Not a client. There is no launcher. As such there is no launcher log.

Up to 2.8GB RAM usage on next instance of server. No crash yet. Should get one by tonight.

migrated

Server survived the night. First time in awhile that's happened. RAM Usage peaked at about 3GB, CPU Usage around 50% – Was about 9 players playing last night.

Current usage 1.8GB RAM 0% CPU

migrated

(Unassigned)

Unconfirmed

Minecraft 18w22c

Retrieved