Like so openHAB 4 migration FAQ
But do not use 64bit, it uses a lot more mem but has no benefits. Stay with 32.