This guide will show you how to allocate more ram to your GAME on your PC
1. Open Your Minecraft launcher On Your PC
2. Click On Installations
3. Click On The 3 Dots Next To The Version Of Minecraft You Are Using And Then Click Edit
4. Click On More Options Down The Bottom
5. Adjust The -Xmx1G To Your Liking. The "1G" Means 1GB Ram. If You Want 4GB Change It To -Xmx4G, 3GB -Xmx3G, And So On. Click Save To Apply The Changes.
You Have Now Allocated More RAM To Your Minecraft Game.
THIS ONLY ALLOCATES MORE RAM TO YOUR GAME ON YOUR PC, NOT YOUR SERVER!
PLEASE ENSURE YOUR PC HAS ENOUGH RAM AVAILABLE BEFORE CHANGING THE VALUE.
You can buy Minecraft hosting here