Deploying a high-performance Minecraft server on a Linux environment requires selecting an optimized server implementation such as Paper, allocating appropriate Java Virtual Machine (JVM) flags, and configuring server tick mechanics. Proper garbage collection tuning prevents tick drops (TPS lag) under concurrent player exploration. When configured properly on KVM virtualization, modern multi-core processors deliver a stable 20 ticks per second (TPS).
Server Software Selection: Why Paper Outperforms Vanilla and Spigot
While the official vanilla server software provides basic functionality, its single-threaded chunk generation and unoptimized entity ticking mechanics lead to severe tick degradation when multiple players explore distant regions simultaneously. Spigot introduced basic asynchronous chunk processing, but Paper (PaperMC) represents the modern standard for production Minecraft server administration.
Paper introduces comprehensive optimizations including asynchronous chunk loading, parallel light calculation, optimized entity pathfinding algorithms, and granular control over item and mob ticking. This enables administrators running on StreamData's KVM VPS to host substantial concurrent player bases without suffering sluggish server responsiveness.
Hardware Sizing and System Prerequisites
Minecraft server performance is heavily bounded by single-core processor clock speed and memory latency. Hardware selection should prioritize:
- Processor Architecture: High single-thread clock frequencies (such as AMD Ryzen 9 9950X with Zen 5 architecture) yield superior tick stability compared to high-core-count, low-frequency enterprise processors.
- RAM Allocation: Dedicated DDR4 or DDR5 RAM. Allocate sufficient memory for heap operations while leaving at least 1 GB to 2 GB for the underlying Linux operating system.
- Storage I/O: World data consists of thousands of small region files. High-speed RAID NVMe storage is essential to eliminate disk I/O bottlenecks during rapid world generation and autosaving.
Configuring Java 21 and Applying Aikar's Optimized JVM Flags
Modern Paper builds require Java 21 or later. Standard default JVM garbage collectors (like ParallelGC) induce periodic global "stop-the-world" pauses that manifest as stuttering and dropped ticks in-game. Aikar's Flags utilize the Garbage-First Garbage Collector (G1GC), specifically configured for gaming workloads.
Deploy the following startup script for a server instance allocated 10 GB of system RAM:
#!/bin/bash
# Startup script utilizing Aikar's Flags for 10 GB allocation
java -Xms10G -Xmx10G \
-XX:+UseG1GC \
-XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 \
-XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC \
-XX:+AlwaysPreTouch \
-XX:G1NewSizePercent=30 \
-XX:G1MaxNewSizePercent=40 \
-XX:G1ReservePercent=20 \
-XX:G1HeapWastePercent=5 \
-XX:G1MixedGCCountTarget=4 \
-XX:InitiatingHeapOccupancyPercent=15 \
-XX:G1MixedGCLiveThresholdPercent=90 \
-XX:G1RSetUpdatingPauseTimePercent=5 \
-XX:SurvivorRatio=32 \
-XX:+PerfDisableSharedMem \
-XX:MaxTenuringThreshold=1 \
-Dusing.aikars.flags=https://mcflags.emc.gs \
-Daikars.new.flags=true \
-jar paper.jar --noguiKey Architectural Benefits of These Flags:
- Matching -Xms and -Xmx: Initial and maximum heap allocations are set identically to prevent dynamic heap resizing pauses during active gameplay.
- -XX:+AlwaysPreTouch: Pre-allocates and zeroes out memory pages during startup rather than allocating pages on demand, eliminating mid-game memory paging spikes.
- -XX:InitiatingHeapOccupancyPercent=15: Starts G1GC background marking cycles early, preventing memory exhaustion before collection finishes.
Tuning server.properties for Maximum Tick Stability
Fine-tune key parameters inside server.properties to balance visual immersion against server processing load:
# Optimal server.properties tuning
view-distance=10
simulation-distance=6
network-compression-threshold=256
sync-chunk-writes=false
use-native-transport=true- simulation-distance=6: Decouples entity ticking from visual rendering. Players can view terrain up to 10 chunks away, while mobs and redstone circuits are only evaluated within a 6-chunk radius, drastically reducing compute overhead.
- network-compression-threshold=256: Prevents the CPU from wasting cycles compressing trivial packets below 256 bytes.
Chunk Pre-Generation: Eliminating Exploration Stutter
On-the-fly world generation is the single largest cause of sudden TPS collapse when players travel with Elytras or fast mounts. To eliminate this bottleneck, install a chunk pre-generation utility such as Chunky before opening your server to public players:
# Set world border and pre-generate chunks
/worldborder set 10000
/chunky radius 5000
/chunky startExecuting pre-generation populates terrain data onto your RAID NVMe storage during scheduled maintenance windows, transforming resource-intensive terrain generation calculations into simple, fast asynchronous disk reads during live gameplay.
Granular Entity Ticking in paper-world-defaults.yml
Refine mob and item behavior inside config/paper-world-defaults.yml to prevent high-density farms from lagging the server:
- entity-per-chunk-save-limit: Limit excessive entity grouping by capping arrows (16), experience orbs (32), and falling blocks per chunk.
- despawn-ranges: Reduce monster soft and hard despawn ranges to 28 and 96 blocks respectively, preventing mobs in deep caves from wasting CPU cycles when distant from active players.
Monitoring Performance and Automating Backups
To inspect real-time performance inside the server console, use Paper's integrated profiling commands: /tps (displays ticks per second across 1m, 5m, and 15m windows) and /spark (generates a detailed memory and CPU profiling report).
Automate off-server backups using external synchronization scripts. For communities managing expansive multi-server networks, BungeeCord, or Velocity proxies, StreamData offers robust Dedicated Servers and cloud compute backed by our infrastructure platform.