how to fix lag in minecraft 1.18 Minecraft Servers

how to fix lag in minecraft 1.18