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.
on the download page, it says that it is recommended that the pack runs on 4-5gb of ram. I've attempted to run the server at 6gb, 8gb,10gb, 12gb, and 16gb but I keep getting "[AWT-EventQueue-0/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:-1]: java.lang.OutOfMemoryError: Java heap space"
I've received the same msg over and over. and I'm not quite sure how to proceed.. when I try to use the .bat file it doesn't work on the first try, it seems like i need to double click forge jar and server jar then click the start.bat file...
https://docs.google.com/document/d/1jPz1l8i4Qn4whnVCoEiOcUfOOZ8sS3IE66LPxdf8N_8/edit?usp=sharing
Post the contents of your startup script.
https://docs.google.com/document/d/1M0e-GnZHS5aJFVIl-Y31m4oSKhs_4Qxn5fgAtSN_Uic/edit?usp=sharing
And you're starting the server by doubleclicking the run.bat?
when I do that, it normally doesn't work for some reason, so I right click it and run as administrator. ....that doesn't work so I double click the forge jar then the server jar... I used to run another server with 131 mods which used a different bat. file and that one worked --->
java -server -XX:+UseG1GC -Xmx18G -Xms18G -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -jar forge-1.12.2-14.23.5.2824-universal.jar nogui
Pause >nul
So is your issue fixed then with that .bat file?
no, that file is for 1.12.2, and the new one is for 1.15.1, IDK what the problem is with my server. on their site, it shows that the server just needs 5Gb to operate but even at 16Gb it still won't work
Add PAUSE at the end of your current startup script and post the error message.
i did, does it matter if i double click the bat file or if i double click the jar file?
---- Minecraft Crash Report -------- Minecraft Crash Report ----// My bad.
Time: 1/20/20 12:26 PMDescription: Exception in server tick loop
com.google.gson.JsonParseException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ at abk.a(SourceFile:496) at abk.a(SourceFile:547) at abk.a(SourceFile:543) at abk.a(SourceFile:551) at wd.d(SourceFile:216) at net.minecraft.server.MinecraftServer.run(SourceFile:627) at java.lang.Thread.run(Unknown Source)Caused by: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1401) at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:593) at com.google.gson.stream.JsonReader.peek(JsonReader.java:425) at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:716) at com.google.gson.internal.bind.TypeAdapters$29.read(TypeAdapters.java:714) at com.google.gson.internal.bind.TypeAdapters$35$1.read(TypeAdapters.java:910) at abk.a(SourceFile:494) ... 6 more
A detailed walkthrough of the error, its code path and all known details is as follows:---------------------------------------------------------------------------------------
-- System Details --Details: Minecraft Version: 1.15.1 Minecraft Version ID: 1.15.1 Operating System: Windows 10 (x86) version 10.0 Java Version: 1.8.0_241, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 94863568 bytes (90 MB) / 227106816 bytes (216 MB) up to 259522560 bytes (247 MB) CPUs: 12 JVM Flags: 0 total; Player Count: 0 / 6; [] Data Packs: Is Modded: Unknown (can't tell) Type: Dedicated Server (map_server.txt)
Of course you need to DoubleClick the .bat file. Install 64-bit Java and reinstall the server from scratch, some files are corrupt.