SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedPerformance

KAllFix

by n1luik · for Minecraft

Optimization and multithreading written by n1luik

16KDownloads
18d agoLast updated
GPL-2.0-onlyLicense
Forge · NeoForgeLoaders

About KAllFix

From Modrinth

Optimization and multithreading written by n1luik

Overview

  • This project is used to fix and optimize issues caused by other mods, and it works on servers.
  • The project contains two main parts: k_all_fix and k_multi_threading, with features mainly controlled by JVM parameters.
  • No regular config file is provided; configuration is mainly done through startup parameters.
  • Client-side usage is supported from 1.0.4.0 onward (requires JVM parameter -DKMT_Client=true).
  • Under a multi-mod and single-threaded baseline environment, cause no issues is not guaranteed, but you could create an ISSUE on Github and the author will fix it quickly.
  • With some mod combinations, clients may still need to install this mod even if it has no visible effect.

Features and Use Cases

Optimizations

  • Optimizes performance for Upgraded Additional Trims.
  • Optimizes the April Fools date-check related overhead in Atmospheric.
  • Optimizes performance for Upgraded Core.
  • Optimizes chicken-coop AI performance in [[Let's Do] Farm & Charm](https://modrinth.com/mod/lets-do-farm-charm).
  • Optimize performance for Event Wrapper
  • Optimize performance for Create:FluidLogistic
  • -DKAF-fluidlogistics.DisabledDynamicUp=true to disable updating old id, if not do so, may cause to preformance slow down.
  • Optimize AE2 game computation
  • Optimize performance for ItemStack.issameItemsameTags
  • Optimize performance of PPMO2
  • Delete useless code of Apotheosis and Create:Connected

Fixes

  • Fixes performance issues related to entity counts in L_Ender's Cataclysm when used on servers with MineColonies.
  • Fixes excessive invalid packet sending in [[Let's Do] Farm & Charm](https://modrinth.com/mod/lets-do-farm-charm).
  • Fixes compatibility issues between Biolith and some MCreator worldgen mods (e.g., Terramity).
  • Fixes compatibility issues between Gregicality Rocketry and Canary, but collision-box issues may still occur at space-station borders.
  • Fixes the issue where Petrolpark's Library 1.4.2 is unusable in some Java environments; this fix can be disabled with -DKAF-DisablePetrolpark=false.
  • Fixes/optimizes magnetic-field-related performance issues in Alex's Caves.
  • Fixes mixin performance issues in Create: Diesel Generators.
  • Fixes server crashes in older Destroy versions caused by database connection failures.

Multithreading

Introduction

  • Multithreading supports includes block ticks, block entity ticks, entities, dimensions, player packet receiving (manual toggle, client-only), and player login (manual toggle), and also fixes some problematic single-threaded mods by applying multithreading.
  • Multithreading is enabled by default on the server side.
  • In multithreaded scenarios, thread-pool interception or limit-exceeded errors may appear, but they usually do not crash the server.
  • It is recommended to manually set -DKMT-threadMax=[CPU thread count]; otherwise world generation may be frozen. If freezes still occurs after setting it, increase the value higher.
  • Before 1.0.4.0, clients cannot use multithreading; from 1.0.4.0 onward, clients can enable it via -DKMT_Client=true.
  • After 1.0.3.3, ParaServerChunkProvider, TaskRun, and some chunk generation code depend more heavily on C2 compilation (the JVM will enter C2 automatically after running for a while).
  • In Windows Server 2022 Datacenter 21H2 20348.3091 (author's environment), rare thread scheduling anomalies may occur and causes abnormally high CPU usage; the solution is to restart the server.

Related JVM Parameters

  • -DKMT-threadMax=[number]
  • Sets thread-pool thread count.
  • -DKMT-callMax=[number]
  • Sets the default maximum number of threads that multithreaded tasks may use.
  • -DKMT-ThreadpoolKeepAliveTime=[milliseconds]
  • Sets how long idle threads are kept before recycling.
  • -DKMT_D=[any characters]
  • Disables multithreading.
  • -DKMT-OpenVanillaServerChunkCache=true
  • Forces the vanilla ServerChunkCache fix path (added in 1.0.5.3).

JVM Parameter Overview (all retained)

Basic and General

  • -DKAllFix_D=[any characters]
  • Disables KAllFix.
  • -DKMT_Client=true
  • Enables multithreading-related features on the client side (1.0.4.0+).
  • -DKAF-DisablePetrolpark=false
  • Disables the Petrolpark's Library 1.4.2 related fix.

Connection and Timeout

  • -DKAF-ClientboundKeepAlivePacket_Max=[milliseconds]
  • Changes the timing requirement for ClientboundKeepAlivePacket (default 15 seconds; vanilla must be <30 seconds or the player is kicked for timeout).
  • -DKAF-ServerTimeout=[seconds]
  • Sets server connection timeout.
  • May be ineffective in some cases (both parameters are needed because Forge's forge.readTimeout only covers server packet-read timeout, not client/server network threads with players).
  • -Dforge.readTimeout=[seconds]
  • Forge packet-read timeout parameter (used together with the previous parameter).

Read the full description on Modrinth →

Highlights

From source data

Game versions

Supports 4 Minecraft versions, the newest being 1.21.1.

Loaders

Runs on Forge and NeoForge.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Performance

Makes the game or server run faster or lighter without changing how it plays.

Works on a server

From source side support

Modrinth lists server-side support for KAllFix as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Minecraft
Loaders
ForgeNeoForge
Runs on
Serveroptional on the server
Game versions
1.21.1 and 3 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓Authorn1luik, as published on Modrinth
  • ✓LicenseGPL-2.0-onlyFree

KAllFix, answered

Generated from the mod’s own source data.

Do my players need to install KAllFix?

Modrinth lists server-side support for KAllFix as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

Forge and NeoForge.

Is it free?

Yes. KAllFix is free to download from Modrinth. Its license is GPL-2.0-only.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run KAllFix on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add KAllFix in one click.