If, following subsequent all People recommendations, you still have issues with RAM and CPU, then possibly it’s for the reason that your software is basically as well large, as well as a Raspberry Pi is not the suitable tool for that work. In this instance, you might like to have a look at substitute embedded board, for instance Intel NUC boards.