If you change the ram in your server you need to run discourse-setup again to adjust the memory settings.
How big is your database? Is this an import or a new community? How fast is the processor? Single core cpu speed is critical. You have SSD and not spinning disks, right?