# "Cannot allocate memory" when upgrading

**URL:** https://meta.discourse.org/t/cannot-allocate-memory-when-upgrading/44029
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [May 11, 2016, 4:23am UTC](https://meta.discourse.org/t/cannot-allocate-memory-when-upgrading/44029 "2016-05-11T04:23:42Z")
**Posts on this page:** 1
**Showing post:** 19

<div class="post-metadata">

### Author: ![prateekvarma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/prateekvarma/32/57928_2.png) [@prateekvarma](https://meta.discourse.org/u/prateekvarma)
#### Post date: [May 23, 2016, 12:07am UTC](https://meta.discourse.org/t/cannot-allocate-memory-when-upgrading/44029/19 "2016-05-23T00:07:32Z")

</div>

Done. Created a 2 GB swap file and the upgrade works like a charm.

Here is the process - [Create a swapfile for your Linux server](https://meta.discourse.org/t/create-a-swapfile-for-your-linux-server/13880)

---

_[View the full topic](https://meta.discourse.org/t/cannot-allocate-memory-when-upgrading/44029)._
