diff --git a/Launcher/source/helper/JVMHelper.java b/Launcher/source/helper/JVMHelper.java index f7f1cc3..b4cd461 100644 --- a/Launcher/source/helper/JVMHelper.java +++ b/Launcher/source/helper/JVMHelper.java @@ -231,7 +231,7 @@ private static int getRAMAmount() { int physicalRam = (int) (OPERATING_SYSTEM_MXBEAN.getTotalPhysicalMemorySize() >> 20); - return Math.min(physicalRam, OS_BITS == 32 ? 1536 : 8192); // Limit 32-bit OS to 1536 MiB, and 64-bit OS to 8192 MiB (because it's enough) + return Math.min(physicalRam, OS_BITS == 32 ? 1536 : 65534); // Limit 32-bit OS to 1536 MiB, and 64-bit OS to 65534 MiB / 64 Gb } public static Class firstClass(String... names) throws ClassNotFoundException