<p>The memory pool (mempool) is not limited to a specific transaction count, but limited by the amount of data the deserialized transactions take up in the node's memory. The default memory pool limit is <a href="https://github.com/bitcoin/bitcoin/blob/1c86ed41483471929840eec09b93d7de3a4aeacf/src/policy/policy.h#L32" rel="nofollow noreferrer">300 MB</a>. The limit can be configured by passing <code>-maxmempool &lt;n&gt;</code> where the <code>n</code> is the number of megabytes allowed.</p>

CC BY-SA 4.0
2020-06-15T22:59:56.017Z
2020-06-15T23:07:48.350Z
2020-06-15T23:07:48.350Z
Murch
<p>The default mempool limit is 100MB. Not limiting at all would be a significant denial of service risk. Raising the limit will increase the performance of your node in some situations, lowering it will reduce the resource usage by a small amount. </p>

CC BY-SA 4.0
2020-06-15T21:30:46.543Z
2020-06-15T21:30:46.543Z
Claris
<p>Is there a default limit to the number of transactions a node can keep in its memory pool? Or do we have to explicitly declare <code>maxmempool=xyz</code> to restrict the number of transactions a node can have in its memory pool?</p>

<bitcoind><full-node><mempool>
What is the default number of transactions a full node have in its mempool?
Haseeb Saeed
# What is the default number of transactions a full node have in its mempool?

(Asked by: username_0 on 2020-06-15)

Is there a default limit to the number of transactions a node can keep in its memory pool? Or do we have to explicitly declare `maxmempool=xyz` to restrict the number of transactions a node can have in its memory pool?

**Tags:** bitcoind, full-node, mempool


---

## 2 answers

### Answer by username_1 on 2020-06-15. Score: 3 | Accepted answer

The memory pool (mempool) is not limited to a specific transaction count, but limited by the amount of data the deserialized transactions take up in the node's memory. The default memory pool limit is [300 MB](https://github.com/bitcoin/bitcoin/blob/1c86ed41483471929840eec09b93d7de3a4aeacf/src/policy/policy.h#L32). The limit can be configured by passing `-maxmempool`  where the `n` is the number of megabytes allowed.


---

### Answer by username_2 on 2020-06-15. Score: 0

The default mempool limit is 100MB. Not limiting at all would be a significant denial of service risk. Raising the limit will increase the performance of your node in some situations, lowering it will reduce the resource usage by a small amount.


---

