1.17.1 Server Crashes

My server crashes every 1 hour or 2 hours and says “Connection Reset” or something, on paperspigot 1.16.3 server everything was fine. And when I updated my server to 1.17.1 it started to crash because of not enough RAM, no matter how much RAM I have set on the server.

You said yourself, your server crashes due it being OOM, so allocate more? I’m unsure what your actual issue is, since you already found a solution for it.