![]() ![]() XX:+UseLargePages Set this flag if you are allocating a large amount of memory for the assembly. The value is set to the optimal value, however, you can play with the parameter to achieve more stability (May cause freezes!) Xss2048k This parameter changes the stack size for processor threads (128, 512, 1024, 2048, 4096) ![]() This flag forces java to allocate memory dynamically as needed, rather than all at once. More parallel computing (More parallel threads) Start the test with the following set of arguments (change their values as needed): -mx1G -XX:InitiatingHeapOccupancyPercent=10 -XX:AllocatePrefetchStyle=1 -XX:+UseSuperWord -XX:+OptimizeFill -XX:LoopUnrollMin=4 -XX:LoopMaxUnroll=16 -XX:+UseLoopPredicate -XX:+RangeCheckElimination -XX:+CMSCleanOnEnter -XX:+EliminateLocks -XX:+DoEscapeAnalysis -XX:+TieredCompilation -XX:+UseCodeCacheFlushing -XX:+UseFastJNIAccessors -XX:+CMSScavengeBeforeRemark -XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses -XX:+ScavengeBeforeFullGC -XX:+AlwaysPreTouch -XX:+UseFastAccessorMethods -XX:+UnlockExperimentalVMOptions -XX:G1HeapWastePercent=10 -XX:G1MaxNewSizePercent=10 -XX:G1HeapRegionSize=32M -XX:G1NewSizePercent=10 -XX:MaxGCPauseMillis=100 -XX:+OptimizeStringConcat -XX:+UseParNewGC -XX:+UseNUMA -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=2 -XX:+DisableExplicitGC Arguments to change first: More responsive world, more stable TPS (Due to the efficient handling of CPU resources) Slow down loading modpack (due to more efficient work with memory) Maximized Garbage Collector (the assembly will use minimal memory usage) Acceleration of processing operations by the processor and the use of fast mathematical algorithms. ![]() After following the recommendations in this article, you will notice the following: - Slowdown of memory operations (due to the need for frequent release) So, after setting the argument, it is better to double-check whether the performance has improved or not. ATTENTION! In order to achieve maximum performance, it is better to choose specific arguments rather than write them all at once.Īrguments behave differently on different Java versions and on different hardware. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |