I had to solve stop-the-world pauses that were causing occasional intolerable lag spikes in a multiplayer game. The solution was to switch to Java&#x27;s G1 GC, and also to deadpool and reuse every object and byte array I possibly could.