Compatibility
Minecraft: Java Edition
26.3
26.2
26.1.x
Platforms
Tags
Creators
Details
Licensed Apache-2.0
Published 3 days ago
Updated last week
Celeris is a Rust JNI and Netty transport engine for Minecraft servers (Paper, Purpur, Spigot, Folia, Velocity). It eliminates ms latency spikes caused by chunk floods, world transfers, and kernel socket bufferbloat.
What It Does
Standard Minecraft servers push every outbound packet into a single FIFO queue and an uncapped OS TCP send buffer. When the server flushes 256 KB–1,024 KB of chunk data, small latency-critical packets stall behind bulk transfers—creating 15–45 ms+ queuing spikes on top of normal ping.
Celeris replaces the server's outbound framing, compression, and scheduling path with a per-channel Rust engine (plus a pure-Java fallback):
- Priority Packet Scheduling: Separates outbound traffic into Express (keepalives, state sync, interactions, blocks, atomic
BundleDelimitertrains), Ordering Barriers (ChunkBatchStart/Finished,FinishConfiguration), and Bulk (chunks, light updates, recipes). Express traffic cuts ahead between32 KBbulk wire slices without breaking stream ordering orViaVersion. - Kernel TCP Pacing: Sets
TCP_NOTSENT_LOWAT(default16384bytes),TCP_NODELAY, andTCP_QUICKACK, and reads LinuxTCP_INFORTT/retransmission metrics to throttle bulk bursts before bufferbloat builds up. - Fused Single-Pass Rust Codec: Combines VarInt framing and zlib compression in one off-heap Rust pass, reducing Netty
ByteBufallocations and GC pauses. - Cipher & DoS Hardening: Encryption (
AES-128-CFB8) runs strictly at drain time so priority scheduling never desyncs stream ciphers. Handshake channels bypass queuing, and Express queues enforce strict byte/packet bounds.
Measured Benchmarks (0.1.0-beta)
Full datasets and interactive charts: https://celeris.fy2ne.me
| Workload | Vanilla FIFO | Celeris java-engine |
Celeris rust-native |
|---|---|---|---|
1 MB Burst Express P99 (32 KB slices) |
44,390 us |
130 us |
100 us |
| TCP Loopback 1 MB Burst KeepAlive P50 | 13.07 ms |
0.81 ms |
0.82 ms |
| TCP Loopback 1 MB Burst KeepAlive P95 | 15.25 ms |
3.17 ms |
2.70 ms |
- Live Paper
26.3(roxaura.mcsh.gg,v0.1.0java-engine):78.7%aggregate wire savings across8,447telemetry rows,20,629preemptions, and0disconnects.
Limits
- Idle links: When no bulk burst is queued, RTT matches Vanilla TCP (
~0.6–0.8 msloopback). - Physical distance: Celeris removes burst-induced queuing spikes; it cannot reduce geographic fiber RTT.
- Tick lag: Transport tuning will not fix main-thread TPS drops below
20.0.
Commands
/celeris stats— live Express/Bulk/preemption counts, delay percentiles (us), wire savings%, and kernel RTT/celeris bench [kb] [iters]— in-JVM A/B benchmark (Vanilla FIFO vs active Celeris engine)/celeris ping [player]— comparemcPing,kernelRtt, and ExpressP99/celeris debug— inspect Netty pipeline order, compression sync, andViaVersionplacement/celeris test— synthetic 64 KB burst preemption self-test/celeris toggle— switch active vs zero-overhead bypass at runtime/celeris lowat <bytes>|/celeris level <0-9>|/celeris bulk <bytes|0>


