minecraft optimized jvm arguments. Ollyy/Shutterstock. minecraft optimized jvm arguments

 
Ollyy/Shutterstockminecraft optimized jvm arguments  The arguments define different elements of the game launch, such as memory allocation, game performance, and optimization, among other

Below where it says JVM Arguments you should see a long string of data. Here is the memory usage of. It resets your JVM arguments to its own defaults and it actually set some bad ones, like the -Xms256m I mentioned above. Many months ago, I did an extremely extensive study into Garbage Collection and Minecraft, and got a really deep understanding on Minecrafts allocation behavior, general object life expectancy and collection rates. So, you write the code, and the JVM will interpret it and help it run precisely how you intended it. Also important: JVM arguments are case-sensitive; Try to install the non-native version of Java (the download can be found here). 6. - Lowered RAM allocated to the game in the JVM arguments, from the standard 800Mb to 600 Mb (had crashes while connecting to servers and this seemed to be the only solution). 0_261, if you want you can read futher for explanation and reference. Is there a way to save the JVM arguments on the launcher even when I am. PlazmaOfficial 4 months ago • posted 11 months ago. Save the file, and then launch the game as normal. and if you want. Before even launching the game, we must optimize the JVM arguments and allocate enough RAM to the game. In order to allocate more RAM, the launcher needs to be accessed. You're just asking for more problems. On the Minecraft client, this is typically why people add some options based around communicating that latency is more important than throughput. exe should be highlighted, right click on It and "set priority" to "High". Updated 12/30/13. 33GB Menu memory idle. Fourth -XX:+UseStringDeduplication only works with G1GC. Protip: get a copy of Red Hat's OpenJDK with Shenandoah (concurrent GC!), set your arguments to tell the JVM to use Shenandoah, and then laugh at people while giving Minecraft some absurd amount of RAM. With 32bit java, the maximum is around 1500MB. Save the settings and play Minecraft. It entirely depends on the modpack and your computer, so be sure to experiment with different RAM allocations and JVM arguments. Basically if you are trying to run VH with a low amount of of ram allocated in singleplayer, this will for sure help, but you might still struggle. Step 2: Open your Minecraft launcher, select the version you wish to apply the argument to, and click edit profile. While we're on the karma train, here's JVM args for a server that work smooth as butter for windows, 64bit JDK7, Core i5 3570k, 8GB ram + SSD: The massive gains seemed to come from the string-related jvm args, and the GC related ones [survivor ratio + new gc flags] Yes, this might be the best setup for his machine. 781. On newer releases you can find them in the manifest under the arguments. In reality, as long as you give it a good amount of RAM (usually 4-6GB for most modpacks), JVM args either don't make a massive amount of difference, or if done wrong, can actually make performance worse. This best practice advice applies to AM, DS, IDM and IG running on Java® 11 (or 17 where supported). gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=51 . Navigate to the “Installations” tab. 15:Boost fps with custom jvm (NO) Boost fps with buy new PC (YES) 👍 1 ItsMeGary reacted with thumbs up emoji 👎 2 MinecraftFabricEnjoyer and OEMunlag reacted with thumbs down emoji 😄 2 ItsMeGary and RizuRey reacted with laugh emojiThe subreddit for all things related to Modded Minecraft for Minecraft Java Edition --- This subreddit was originally created for discussion around the FTB launcher and its modpacks but has since grown to encompass all aspects of modding the Java edition of Minecraft. 11 participants. If your setup is RAM constrained, try removing the following arguments in particular: -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M, and try the server G1GC arguments. Before getting into game optimization, make sure to close everything when launching into the game, try to keep background programs minimal. The subreddit for all things related to Modded Minecraft for Minecraft Java Edition --- This subreddit was originally created for discussion around the FTB launcher and its modpacks but has since grown to encompass all aspects of modding the Java edition of Minecraft. Setting Java as a priority might reduce lag issues. sh works fine. Try resetting the JVM arguments; the ones that you are using are only good for old versions which were much less memory-hungry and "CMSIncrementalMode" in particular is all but useless and probably harmful on modern systems (it was designed for single-core CPUs, and Java. Open the Minecraft Launcher and hit Edit Profile in the Bottom Left, Make sure to Check JVM(Java Virtual Machine) Arguments, from there Change the First number you see (-Xmx1G) to your desired amount of RAM, In my Case I can Allocate up to 14 Without any issue so i have 8 Allocated as im also Running Shaders and Textures. STEP #3; Head straight into your minecraft launcher, select the profile you play with and click "Edit profile". Step 8: Then click on Save. Desktops have an integrated gpu and if your a gamer then probably another gpu attached as a pci card, so if it was the wrong graphics processor and you want performance let me ask you, why aren't your two gpu's crossfired? Could someone tell me what are the best arguments for Modded Minecraft 1. 13 multithreaded world generation, 1. You'll need to do some testing though as this type of mod occasionally breaks others. Games tend to be a little behind the cutting edge environment releases. JVM tuning is not an exact science and will vary across individual. If the M1 Chips continue to develop it's obvious that Macs. 9. All the optimizations is a small yet effective pack that aims to give you butter smooth FPS with shaders. GTX1070. I will definately try it out later today. 7 Step 3: Start Up The Minecraft Launcher. Search Java > right click and Set Priority as High. Minecraft Java版は、文字通りJavaというプログラミング言語で書かれています。 Javaはコンパイル型言語なのでとても高速に動作し、JVM(Java 仮想マシン)を利用してほぼ全てのコンピューターで実行可能という優れたものです。This mod automatically calls System. Default Minecraft Launcher. Multithreaded Noise (may change the gen a bit if you dont mind) AI Improvements. The -Xmx option tells the JVM to use a maximum heap size of 2 GB. HotSpot is the traditional JVM used by Java applications like Minecraft. JVM arguments don’t fit everyone, but the one that is shipped with Fabric by default is made to fit the most overall. Just click the "Install Pack" button, and choose how much RAM you would like to allocate by using the. These are the original classic JVM Arguments for Minecraft since Minecraft 1. exe -Xmx4096M -Xms2048M -jar <location of your Minecraft exe>. Click the installations button at the top. 2ghz processor with 8gb ram. First of all check for spelling mistakes. java. Running the new default arguments I noticed that the performance is much worse, especially when allocating 4 GB of memory. 4?Minecraft is VERY poorly optimized (Java) since it utilized only 1 - 2 cores and the generation is very ineffective. Reaction score. library. Aside from performance mods and arguments, what are you trying to run? If you want to play a heavy modded technical pack in the latest Minecraft version, i doubt it will ever work even at minimum settings with Sodium and stuff; but if you just want to play Minecraft but nicer (for example, a vanilla plus modpack in a version up to 1. properties: java. In a nutshell, your FPS will be stable with GraalVM. For systems with +16GB RAM (8GB ASSIGNED of total): Fortunately, Minecraft is built on the JVM, and the Garbage Collector is fully configurable. In these cases check the root . Faster Minecraft using java arguments 2: For advanced and hugely optimized gameplay, see this. 5. How much ram have you got? At most give your game 50% of your ram. bat. keys. 2 with 180+ Mods via Forge. To resolve JVM errors when running Minecraft on Ubuntu, you can adjust the Java arguments in the Minecraft profile settings. Making Minecraft Java optimised for the Apple Silicon Macs is a better use of time for Mojang's developers than making it available from the IOS section on the Mac App Store. true. 15 (Java 8+, MC 1. server. So the problem here is you got 2 typos. Minecraft Launcher: ends with code 1. Once it's installed head on to your Minecraft launcher and create a new profile Select the Fabric Loader you've just installed in the version Click on more options and select Browse in Java Executable. Two Members of the SpigotMC community have written and been updating a Guide on how to optimize your paper. 32/64 Bit. With default settings the jvm will garbage collect relatively infrequently and periodically load the CPU pretty hard if there is too much memory to be collected at once. Select the one you want to change the amount of RAM for, click on the. Thanks, I recently was only changing the first amount, not the second. Fifth all of your arguments lag like hell. This is true in the brand new versions of the Minecraft launcher, so with older. The Java properties file has the following format. Your mileage may vary, though, so it’s good to try different arguments and see what’s best for you. To get the best performance possible, add the below command into the Extra Arguments box in the Setting->Java tab and click the Save button. The user_jvm_args. This runs the JVM in server mode. When I come back to playing old modpacks I don't have t. Development. “2G” in this argument means 2GB of RAM is currently allocated, which is the default for Java Edition. Install Sampler from the FastCraft thread (and FastCraft if you don't have it already), run "/sampler tps", "/sampler memory" and "/sampler counts", post their outputs. The first thing to keep in mind is that there is no "best" configuration. This includes simple adjustments like the size of the heap, through choosing the right garbage collector to using optimized versions of getters. There is some overhead for every JVM application. Using a small amount of minimum memory allocation causes Minecraft to run less optimally than with the same as the maximum memory usage. Remember, this part should be for advanced users only, as before, visit the JVM argument section, then delete all the code, then paste this into the box: I recommend leaving the others alone) -client. - GitHub - etil2jz/etil-minecraft-flags: An extra optimization to Aikar flags, the JVM arguments that make your Minecraft server smooth. Side note: if anyone wants a cheap server, these things are inexpensive on eBay. 8). General Information JVM Arguments. Reduce MTTR Optimize Logging Costs Improve Dev Productivity Improve Reachability Reduce Time to Market Improve DORA Metrics. Minecraft: TheMasterCaver. CLIENT ONLY MOD . Minecraft relies on RAM for data storage and process execution. Oh, I see. Unlike many other languages, Java does not run directly on the hardware, but in a virtual. java-home=JVM-pathStarting out as a YouTube channel making Minecraft Adventure Maps, Hypixel is now one of the largest and highest quality Minecraft Server Networks in the world, featuring original games such as The Walls, Mega Walls, Blitz. minecraft directory. 8 multithreaded rendering, 1. In fact when running the benchmarks for our meltdown article we noticed that the Techempower Rapidoid startup script sets the -XX:+AggressiveOpts JVM flag. -XX:+UseG1GC is more popular but did nothing for me. Anyway, the true answer to your question is "There is no best java arguments for Minecraft". This is because Java Garbage Collection. The first setting is the game’s. If you find this interesting then feel free to try this yourself! Try an leave at least 1GB for the general system processes and stuff like that. 4k 10. If you find this interesting then feel free to try this yourself!Try an leave at least 1GB for the general system processes and stuff like that. This is probably caused by the JVM using a memory-mapped file called hsperfdata. " This is where you can enter your Java arguments. RAM is one of the most necessary resources for the FPS boost. I'm not familiar with the difference but depending which one you want to use you'd use the following arguments: -XX:+UnlockExperimentalVMOptions -XX:+UseZGC --illegal. 24. #1. The -server flag forces Java to use the "server JVM," which runs a bit more optimized than the regular client JVM. All of our servers are deployed with Aikars Optimized JVM arguments, which can be found here. To anyone who the rest of this article isn't helpful for: In the Minecraft launcher, click edit profile. exe (e. In this article we will go over server. ”. Tuning a standalone Minecraft server is a totally different beast. (Please keep in mind that the switch to Java 14 and changing the JVM arguments are optional). Look for where it says JVM arguments and change -Xmx1G to -Xms[Gigs of RAM]G. You’re looking for the part of the code. I believe you could always run Minecraft with newer versions of Java (to various degrees of success), it was just Forge that was limited to version 8. yml and server. The best way to use this guide is to tune the values shown to your liking. Then, click "Edit," and you should see a tab that says "JVM Arguments. automation tool and configuration framework optimized for dealing with structured data (e. Note that support for applets was dropped in Java 9. Those are array of either a string corresponding to the argument or an object containing the value and the rules to check before appending the given argument. Change “2G” to the amount of RAM you would like to allocate for Minecraft. JVM Arguments best for RLCraft. Minecraft jvm arguments 8gb ram- However, unless you're playing with Mods, you'll never need more than 8GB RAM to run Minecraft If you have 8GB of RAM, you won't need to add more than 75% of it, or 6GB, which will enough Some modded Minecraft games need more than 8GB of RAM to. Enable ZGC; Enabling ZGC depends on your startup method (some flags are not required, but are added to avoid issues):Linux bash script: You can just use my script from here. -Xmx is probably the most important JVM argument. It is the largest bottleneck, and it is very hairy to tune. Faster Minecraft using java arguments 2: For advanced and hugely optimized gameplay, see this. So, if we were to put -XX: AggressiveOpts, it would look something like this:// Optimized JVM arguments for Minecraft 1. -XX:+UseG1GC is more popular but did nothing for me. , I would use "-Xmx4G ". a 64bit OS, Java7u45 (or above), and a minimum of 3GBs of free RAM. – Ramhound. How you do it with a program that does support it is program specific. java. Using Better FPS and FerriteCore helps. help with JVM arguments please. It's a mod SPECIFICALLY created to optimize Minecraft to reduce lag and boost FPS and has been used in the Java community by Youtubers and regular players alike. gc() to free up your memory. It entirely depends on the modpack and your computer, so be sure to experiment with different RAM allocations and JVM arguments. Same for me, using the Java 8 version for Divine Journey 2 Minecraft 1. 1\" width=\". You also may have a power management configuration issue. In order to get that line of commands is going Launch Options > Profile> JVM Arguments On > And that is what is in the JVM arguments. MultiMC generally adds most of the relevant JVM arguments itself, without any need for. With optimized jvm arguments it’s not as big of a problem (and I think the regular Minecraft launcher has used some by default for a while now) but it can be an issue. For certain commands (import-ldif, export-ldif, backup, and restore) you can also specify different Java arguments (and a different JVM) depending on whether the command is run in online or offline mode. g. . When it is disabled, the option for JVM-Arguments does not show. 12. Time for Forge load: 3:55 38% Menu CPU idle 5. I can easily run my modpacks with 4 or 5GB of RAM tops. JVM Arguments is a set of code that gives minecraft more ram which speeds up the game. Unlike the Minecraft server, Velocity can actually benefit from the extra cores and single-threaded performance is not as important. 1. Change the: -Xmx1G at the front to the max amount of ram. 700+ particles loaded is probably killing your cpu a bit. server. 1 fabric dedicated server (fabric) and on linux machine that is more than powerful to run 5 huge servers. So the final result will be: java -client -Xmx2G -Xmn128M -Djava. 12. -XX:+UnlockExperimentalVMOptions Allows all arguments listed here. Always keep this value lower or equal to the -Xmx JVM argument. Archived post. I wanna know what are the best java arguments to use as Idk how to properly use them, here is what i'm currently using: -Xms4G -Xmx4G -d64 -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 . To allocate this amount of memory to Minecraft, go into your game instance's "JVM Arguments". #19 Woodiie, Jan 8, 2020. First go to Launch Options in the launcher, and check the advanced settings slider. Remember, this part should be for advanced users only, as before, visit the JVM argument section, then delete all. Yes Minecraft is different as it runs through java, but if Java runs natively Minecraft runs with natively too. 4. Reveal more options to see the JVM Arguments command. The start memory. To assign more RAM to the default Minecraft launcher, you need to do the following: Open your Minecraft launcher and click on the Installations tab. It's just a JVM argument you can use. 5GB: -Xms2500M. Spigot Optimization Guide. 4. By default, Java's garbage collector is not optimized for running Minecraft servers, but Aikar's flags is a set of tuned flags that is specifically designed for running Minecraft servers. 7 Step 3: Start Up The Minecraft Launcher. -XX:+UseG1GC -Dsun. Pufferfish Server Optimization Guide. java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions . Remove '-Xmx1G' or the default setting and replace it with the desired amount of ram you want by using the key below (Note: Putting too much RAM may have bad effects discussed above). Win10. if I find better ways to increase performance. minecraftversions(your profile)(your profile). Default: 10. #moddedminecraft #shaders #createmod I made this video mainly as a resource for myself in the future. 13 without downloading it. Dedicated Member. Basically the only performance issues I personally have noticed connected over LAN is that the server starts to lag when anyone explores new, un-generated chunks. First of all, JVM flags are fundamentally different to GCC's optimization flags. A lot of 🚩, OptiFine supports running the game with arguments, some of which are not available in the options menu. The /r/feedthebeast subreddit is not affiliated or. "Could not create the java virtual machine". Follow these steps: Open the Minecraft launcher and navigate to. The case where this isn't true is where you know something that the JVM can't, such as the trade-off between latency and throughput. Make sure the JVM Arguments checkbox is checked. Click on the version menu and find quilt (You could optionally edit the quilt one) Set the directory for the game (Leave it if you just want to keep it in . It involves techniques and strategies aimed at improving. For a small modpack start with 4GB, for a larger one, go with 6GB. 28GB Menu memory idle. For default Minecraft launcher users, allocating more RAM is simple: To add RAM, open the default launcher and go to the installation tab. 8. Replace the JVM args with one of these: Modded Minecraft. Adjust the JVM (Java Virtual Machine) arguments in the launcher. If you don't know how, here's how: Go into the launcher and look at the installations tab. I have magnesium, clumps, ai improvement mods, allocated an adequate amount of ram, prioritized java's CPU usage, closed everything other than Minecraft, ran antiviruses and is still have some lag spikes. If you're going to spread java flags, please actually do your own research into what you're blindly shoving to. configurationFile=log4j2_112-116. The arguments define different elements of the game launch, such as memory allocation, game performance, and optimization, among other. # For example, to set the maximum to 3GB: -Xmx3G. May 11, 2017. Compiler Configuration on JVM The options for configuring the Graal compiler on the JVM are in 3 categories. 4 for Minecraft: Java Edition. Enables the server's GUI control panel. 2 and assetsIndex 1. Server. When you recommend a new player to modded minecraft, there's a lot of steps just to get to a baseline playable level of performance, especially on lower end machines: download a launcher, setup JVM args, enable alwaySetupTerrainOffThread if on forge, install performance mods, etc. minecraft\versions(your profile)(your profile). If we want to set the environment to 64 bit manually, we can do so using the below parameter: -d<OS bit>. 1. Reduce MTTR Optimize Logging Costs Improve Dev Productivity Improve Reachability Reduce Time to Market Improve DORA Metrics. By default, Java's garbage collector is not optimized for running Minecraft servers, but Aikar's flags is a set of tuned flags that is specifically designed for running Minecraft servers. Select the Launch Options tab. -Xms. 2 to version 1. Add the following argument at the beginning of the line: -Xmx<your desired RAM allocation>G. JVM also interprets the Java programming language because it executes the programs written in Java. . Make sure that the JVM arguments are turned on. TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1. Azul has an optimized build for AArm64 (Apple Silicon) but I'm having trouble getting Minecraft to. -XX:-UseJVMCICompiler: This disables use of the Graal compiler as the top tier JIT. I will also continue to keep these updated. OpenJ9 is a newer JVM that is said to have better startup times and lower memory footprint than HotSpot. This technique applies for any Java applications running local or remote. Change the amount of RAM that Minecraft can utilize after Xmx (for example, Xmx4G means Minecraft is allowed to use 4GB RAM). Desktops have an integrated gpu and if your a gamer then probably another gpu attached as a pci card, so if it was the wrong graphics processor and you want performance let me ask you, why aren't your two. Under “More options,” find “JVM Arguments” in Java settings. These flags will reduce your server's pause times due to garbage collection and will cause the JVM to avoid lengthy old-gen garbage collection cycles. sh. 12. Min/Max Allocated Ram to your Minecraft client. 1ile of FPS, and as such reduces stuttering significantly. 6. Placing it outside the directory, over in ~/. You have to assign the particular java executable that is being used (see your launcher profile JVM argument) to run on the discrete GPU. Step 8: Click on “More Options” and locate the “JVM Arguments” box. yml, bukkit. NOTE MultiMC is a modding-friendly alternate launcher for Minecraft, which is recommended. Change “2G” to the amount of RAM you would like to allocate for Minecraft. Hi all! I found an optimized version of Java for Apple's new M1 chip. 5. Due to the fact that explicit gc can freeze your game for a short period, the mod watches the player movement and starts to clean up your RAM after the player stays idle for a while. It can be as simple as adjusting the heap size – the -Xmx and -Xms parameters. Mine is set to -Xms2G, so on startup it will have 2gigs of RAM. 12. . Aside from that, there are two main methods I've seen and tried. Thanks. 5, download this file and add the following JVM argument to your startup command line: -Dlog4j. e. The performance was once again impressive, with an average of nearly 200 fps while playing Minecraft on a laptop primarily used for development rather than gaming. all you need to do is download optifine G7 and put in the mod folder and run it. Then go on JVM Arguments and put -Xmx4G -XX:+UnlockExperimentalVMOptions -XX:+UseZGCMinecraft jvm arguments 8gb ram. I don't know if it's the size of the modpack or my computer but whenever I enter a world it's always s. 0. 20? Want to optimize the game for the best performance and visuals? Want more FPS out of your game? Don't worry; there are a lot of small. 1. BUT READ IT FIRST BEFORE ACTING!! Introduction The purpose of this thread is to help players with less capable graphic cards in their computers get better performance in Minecraft. # A good default for a modded server is 4GB. 17+. Here is the memory usage of HotSpot. Additionally, you should only reduce the values mentioned in this guide. ZGC supports heap sizes from 8MB to 16TB. Below are the JVM arguments. Most of this sort of stuff isn't anything that 90% of Java developers actually need to care about. JVM arguments don’t fit everyone, but the one that is shipped with Fabric by default is made to fit the most overall. 3. Adjust RAM for MinecraftIn the “JVM Arguments” section, the argument “-Xmx2G” determines how much RAM is allocated to your Minecraft game from your computer. To increase RAM, go to Installations. Need Advice with JVM arguments for MC 1. flags. The MyApp argument specifies the name of the main class that should be launched when the JVM starts. 1. But like I said, it happens that minecraft mostly only uses the memory you. Sep 7, 2022 at 9:31. Make sure the Advanced settings is turned on. This is my spec and I use forge 1. Minecraft Java run arguments are parameters passed to the Java Virtual Machine (JVM) when a user launches the game. server. debug. KazoomTheGreat • 1 yr. We deploy optimized JVM arguments by default to make your server run even better! Read below for more information. 0. Purpur is a fork of Tuinity, and Tuinity actually has some memory usage improvements. 2 - Lock all existing memory regions before JVM initialization (can mlock up to 150MB). And what im searching for is JVM arguments to improve the server performance even more as im not that familliar with java 17. The Java Properties File Format. exe' executable. It is running on an Intel core duo core 2. These flags will help you run your server consistently without any large Garbage. The system properties. 14. Minecraft JVM Args optimization Every time I open a Minecraft modpack, I have to change one little thing in the JVM arguments section: the minimum memory allocation. Reposting my posts I have in the Paper & Spigot community here! EDIT: Please see for updated content. 2 Realistic Texture Pack. The answer greatly depends on what library you are using for creating you application: Swing, JavaFX, OpenGL (lwgl), etc. server. Pre-Game Launching. What really hits java, esp with MC is the backend. If your PC is struggling with performance or you're using an old version of Minecraft (1. This is due to the growth of MC having hit an important threshold, that the crappy graph is trying to illustrate: the default sizing of Minecraft memory (1GB) is now too small to accommodate a normal size modded MC instance. People can change these arguments on their own if they want to. The 2G portion of that denotes the 2GB of RAM that Minecraft has allocated to it. If you want the best JVM argument on Minecraft Forge, go for Xmx and -XX: MaxMetaspaceSize -Xmx. If the tick rate is bad or spiking, you'll have to use sampler's profiling feature or Opis to see why. Marks your Java Virtual Machine (JVM) as a client application. Explicit Heap Memory – Xms and Xmx. Click Task Manager and head over to Details. Beyond increasing ram allocation, which major launchers natively support, there isn't much meaningful you can do to the jvm to improve performance. here's. The /r/feedthebeast. In the “JVM Arguments” section, the argument “-Xmx2G” determines how much RAM is allocated to your Minecraft game from your computer. 12. Specify the Maximum RAM according to the total RAM of your system. Java Arguments (JVM), explaining them, and commonly used settings. On this page, click "More options". 60 gHZ Nvidia Geforce GTX 1050 with 2 GB of VRAM 8 GB RAM (4 GB allocated to Minecraft) Note: I do use FoamFix and the latest version of Optifine for 1. Pufferfish Server Optimization Guide. It's also recommended to keep -Xmn between 1/4 and 1/2 of -Xmx. you can also set other settings here too if you wish. // -XX:+AggressiveHeap // Enables Java heap optimization (DEPRECATED).