# "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:** 9

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [May 22, 2016, 4:21am UTC](https://meta.discourse.org/t/cannot-allocate-memory-when-upgrading/44029/9 "2016-05-22T04:21:40Z")

</div>

> [@skx](#):
>
> Failing that if you’re on a virtual machine pay for more RAM.

Or add a swap file or increase the size of your swap file.

---

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