Crashing with out of memory error when opening a topic

Check out High-CPU / High memory on fresh discourse install and Discourse 2.2.0.beta8 Release Notes

Important Note: Expect high CPU usage for a few hours after this upgrade due to image re-optimization. Sites with large numbers of images may see high CPU usage for a longer period of time.

It could be that you need to tune the number of unicorn workers and reduce the cache size for the database for that initial optimization to work.

4 Likes