Packet compression and network settings
network-compression-threshold and other network parameters: what they affect, when to change them, and what an incorrect value can cause.
Updated August 13, 2026
network-compression-threshold=256
Packets larger than the specified size are compressed before sending. The default is 256 bytes.
What to change
| Value | When |
|---|---|
| 256 | Default, suitable for almost everyone |
| 512 | A server with a large player count on a good connection: less CPU work |
| -1 | Compression disabled. LAN only — traffic will grow several times over |
On hosting you usually don't need to change this: the connection isn't the bottleneck, and CPU time is more expensive.
Server network
Between the proxy and the backends, compression is often disabled: they're close together, the connection is fast, and compressing twice is pointless. In Velocity this is configured separately — Velocity.
What else affects the network
- The number of entities in view — the main source of traffic.
- The update rate of the scoreboard and TAB.
- Holograms and item frames at spawn — Holograms.
view-distance— view-distance.
If players complain about stuttering at normal TPS, look here, not at compression — Ping.
Minecraft hostingYour server runs while you are offlineCreate server
