<p>It was the masternodes syncing.
Once I created a masternode and synced it, the getblocktemplate started returning normally.</p>

CC BY-SA 4.0
2018-06-09T13:32:13.697Z
2018-06-09T13:32:13.697Z
Alex Brest
<p>The error is exactly as it sounds: your machine was unable to allocate memory for the block template object thus it ran out of memory. You will need to use a machine that has more RAM.</p>

CC BY-SA 4.0
2018-05-28T19:01:37.457Z
I tried it ona a machine with 8GB of ram and still it returns the same error. Could it be, that the error indicates something else, or a blocktemplate could really take more than 8GB of space?
Alex Brest
CC BY-SA 4.0
2018-05-28T19:04:42.260Z
The block template is really not that large. There's probably something else going on in your OS that is preventing it from being able to allocate the memory.
Ava Chow
CC BY-SA 4.0
2018-05-28T19:26:36.943Z
Any idea what could that be? Some file permissions? Any other ideas?
Alex Brest
CC BY-SA 4.0
2018-05-28T18:56:13.480Z
2018-05-28T18:56:13.480Z
Ava Chow
<p>I tried on a few different machines, vps etc. Also, few different altcoin litecoin included. Most were with 4 GB of ram, if this matters.</p>

<p>Every time when I enter the command getblocktemplate , I get return error message -7 "out of memory".</p>

<p>This prevents me from mining the coins in a pool.</p>

<p>Does anyone have any idea, why do I get these errors, and what to do to fix them?</p>

<mining-pools><altcoin><error><cli>
getblocktemplate returns out of memory
Alex Brest
# getblocktemplate returns out of memory

(Asked by: username_0 on 2018-05-28)

I tried on a few different machines, vps etc. Also, few different altcoin litecoin included. Most were with 4 GB of ram, if this matters.

Every time when I enter the command getblocktemplate , I get return error message -7 "out of memory".

This prevents me from mining the coins in a pool.

Does anyone have any idea, why do I get these errors, and what to do to fix them?

**Tags:** mining-pools, altcoin, error, cli


---

## 2 answers

### Answer by username_0 on 2018-06-09. Score: 2 | Accepted answer

It was the masternodes syncing.
Once I created a masternode and synced it, the getblocktemplate started returning normally.


---

### Answer by username_1 on 2018-05-28. Score: 0

The error is exactly as it sounds: your machine was unable to allocate memory for the block template object thus it ran out of memory. You will need to use a machine that has more RAM.

> **Comments:**
> **username_0**: I tried it ona a machine with 8GB of ram and still it returns the same error. Could it be, that the error indicates something else, or a blocktemplate could really take more than 8GB of space?  
> **username_1**: The block template is really not that large. There's probably something else going on in your OS that is preventing it from being able to allocate the memory.  
> **username_0**: Any idea what could that be? Some file permissions? Any other ideas?  

---

