Hi. I recently got a RPI4 with 4GB RAM.
I set it up so the OS runs off an SSD rather than using the SDCARD using Raspbian. Other than that, it's a pretty standard RPI4.
I installed the Oracle 8 JRE and JDK.
I installed the Spigot builder for making the Minecraft JAR and installed a "Don't load chunks" or something like that to optimise performance.
I used this page to set it up.
https://circuitdigest.com/microcontroll ... ver-set-up
It's a little out of date, so I changed some of the commands
It was a little laggy at first, but smoothed out after a bit.
Tonight I'll be customising the server start command a bit, increasing the memory usage from 1gb to as much as I can get away with allocating.
Seems like the max I'll be able to allocate is 2.7 GB.
I'll be tweaking the server.properties file tonight too to improve performance.