# Ghc: internal error: Unable to commit 1048576 bytes of memory

**URL:** <https://forum.cardano.org/t/ghc-internal-error-unable-to-commit-1048576-bytes-of-memory/38845>\
**Category:** Operate a Stake Pool\
**Created:** [19 August 2020 21:20 UTC](https://forum.cardano.org/t/ghc-internal-error-unable-to-commit-1048576-bytes-of-memory/38845 "2020-08-19T21:20:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tan777](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@tan777](https://forum.cardano.org/u/tan777)\
**Post date:** [19 August 2020 21:20 UTC](https://forum.cardano.org/t/ghc-internal-error-unable-to-commit-1048576-bytes-of-memory/38845/1 "2020-08-19T21:20:18Z")

</div>

Hello everyone,

im trying to setup a stakepool on AWS (as per stake pool course).  
When building the node and running this

`cabal build all`  
i am getting this error:  
_ghc: internal error: Unable to commit 1048576 bytes of memory_

Does anyone know how to resolve this ?

---

<div class="post-metadata">

**Author:** ![erikd](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/erikd/32/813_2.png) [@erikd](https://forum.cardano.org/u/erikd)\
**Post date:** [19 August 2020 21:39 UTC](https://forum.cardano.org/t/ghc-internal-error-unable-to-commit-1048576-bytes-of-memory/38845/2 "2020-08-19T21:39:17Z")

</div>

How much memory does your instance have? I would consider 8Gig a minimum for actually building the node from source.

---

<div class="post-metadata">

**Author:** ![tan777](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@tan777](https://forum.cardano.org/u/tan777)\
**Post date:** [19 August 2020 22:35 UTC](https://forum.cardano.org/t/ghc-internal-error-unable-to-commit-1048576-bytes-of-memory/38845/3 "2020-08-19T22:35:12Z")

</div>

Hi Erik,

it looks like I selected a wrong instance type (Carlos is using 4 Gib, and I selected 1).  
I will try 8 just to be sure.  
Thanks for your help!

---

<div class="post-metadata">

**Author:** ![tigrpool.com](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/tigrpool.com/32/26328_2.png) [@tigrpool.com](https://forum.cardano.org/u/tigrpool.com)\
**Post date:** [9 March 2021 20:47 UTC](https://forum.cardano.org/t/ghc-internal-error-unable-to-commit-1048576-bytes-of-memory/38845/4 "2021-03-09T20:47:45Z")

</div>

Very likely that you run out of memory.
