# Crashing with out of memory error when opening a topic

**URL:** https://meta.discourse.org/t/crashing-with-out-of-memory-error-when-opening-a-topic/106983
**Category:** Support
**Tags:** server-resources
**Created:** [19 januari 2019 om 18:26 UTC](https://meta.discourse.org/t/crashing-with-out-of-memory-error-when-opening-a-topic/106983 "2019-01-19T18:26:53Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)
#### Post date: [19 januari 2019 om 19:44 UTC](https://meta.discourse.org/t/crashing-with-out-of-memory-error-when-opening-a-topic/106983/5 "2019-01-19T19:44:19Z")

</div>

Check out [High-CPU / High memory on fresh discourse install](https://meta.discourse.org/t/high-cpu-high-memory-on-fresh-discourse-install/99699) and [Discourse 2.2.0.beta8 Release Notes](https://meta.discourse.org/t/discourse-2-2-0-beta8-release-notes/105915)

> **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.

---

_[View the full topic](https://meta.discourse.org/t/crashing-with-out-of-memory-error-when-opening-a-topic/106983)._
