From 87830b4436d999a1e885f8505cefee12471deb03 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Mon, 20 Aug 2018 02:21:18 -0400 Subject: [PATCH] Updated Java Management (markdown) --- Java-Management.md | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/Java-Management.md b/Java-Management.md index d695aec..9018bed 100644 --- a/Java-Management.md +++ b/Java-Management.md @@ -11,25 +11,45 @@ The launcher was designed to handle Java setup for you. If you're an advanced user or would like to simply tinker with the default settings, you may do so on the Java Management Tab. +--- + ## Java Management Tab ### Change Minimum or Maximum RAM Allocating RAM is easy! Just move the sliders to your desired value. You can set the value to the nearest half a gigabyte. -Notes -* If you have 6 GB of RAM or greater, the minimum amount you can allocate will be 3 GB. If you have less than 6 GB, the minimum will be 2 GB. WesterosCraft required **at least** 3 GB of RAM to run smoothly, however you may be able to get by with just 2 GB. -* The maximum amount of RAM you can allocate is determined by the following forumula: (total ram) - (1G for OS) - (1G per each 4G ram). If you have 16 GB available, we'll only let you allocate 11 GB. **As a rule of thumb, try not to allocate more than half of your available memory.** +#### Technical Notes +* WesterosCraft requires 3GB of RAM to run smoothly. +* **We recommend setting the miminum and maximum to the same value.** + * Having the JVM expand and contract the heap while chasing the 'free to used ratio' that it targets can be expensive and generate and cause random lag spikes. +* Avoid allocating more than 1/2 your total RAM unless you know what you're doing. * The slider will change color based on how much RAM you allocate. * Green: Less than 1/4 of your total available RAM. * Yellow: Greater than 1/4 of your total available RAM. * Red: Greater than 1/2 of your total available RAM. -* **We recommend setting the miminum and maximum to the same value.** Having the JVM expand and contract the heap while chasing the 'free to used ratio' that it targets can be expensive and generate and cause random lag spikes. +* The minimum amount you can allocate is determined by the following. + * Total RAM < 6GB : 2G + * Total RAM ≥ 6GB : 3G +* The maximum amount you can allocate is determined by the following. + * Total RAM ≤ 16GB : (Total RAM) - (1GB for OS) - (1GB per each 4GB of RAM) + * Total RAM > 16GB : (Total RAM) - (1GB for OS) - (1GB for each 8GB of RAM > 16GB) - (1GB per each 4GB of RAM) + +--- ### Change the Java Executable The launcher automatically discovers valid installations of Java on your computer. If you do not have a valid installation, the launcher will prevent the game from launching (otherwise it would crash and burn). A valid installation is **Java 8 x64 greater than update 52**. -**Why is Java 10+ not supported?** +**Why is Java 10+ not supported?** Forge and LaunchWrapper [only support Java 8](https://github.com/Mojang/LegacyLauncher/pull/11). -Forge and LaunchWrapper [only support Java 8](https://github.com/Mojang/LegacyLauncher/pull/11). \ No newline at end of file +The launcher will give you the option to automatically download a valid version of Java if it fails to find one. It will download it to `.westeroscraft/runtime/x64` as a local installation (only for the launcher). **We recommend using this option.** + +#### Manually Installing a Valid Version of Java + +If you want to manually install Java rather than having the launcher do it for you, follow these steps. + +* [Download Java 8 x64](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html). + * Windows: Windows x64 (`jre-8uVERSION-windows-x64.exe`) + * MacOS: Mac OS X x64 (`jre-8uVERSION-macosx-x64.dmg`) + * Linux: `sudo apt-get install openjdk-8-jre` (or equivalent for your distro). \ No newline at end of file