If, after subsequent all Those people suggestions, you still have issues with RAM and CPU, then maybe it’s due to the fact your application is really far too weighty, and a Raspberry Pi isn't the right tool to the task. In such cases, you might want to check out option embedded board, such as Intel NUC boards. Also, in a few scarce circumstances