# Efficient memory configuration

**URL:** <https://community.neo4j.com/t/efficient-memory-configuration/30747>\
**Category:** Neo4j Graph Platform\
**Tags:** knowledge-base\
**Created:** [December 21, 2020, 1:20pm UTC](https://community.neo4j.com/t/efficient-memory-configuration/30747 "2020-12-21T13:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![usamabin.masood](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/usamabin.masood/32/7498_2.png) [@usamabin.masood](https://community.neo4j.com/u/usamabin.masood)\
**Post date:** [December 21, 2020, 1:20pm UTC](https://community.neo4j.com/t/efficient-memory-configuration/30747/1 "2020-12-21T13:20:50Z")

</div>

Can you help us in setting up effective memory management configuration for Neo4J Database. We are facing excessive memory issue in Neo4J database.

We have set up a Neo4J instance with 16VCPUs and 64GB Ram and set up 32GB Heap size. In first load jobs RAM shoot up to 95% and database stopped working. I stopped the instance and reduecd heap size to 16GB as documentation. Since then, idle RAM usage is 20% and any load job rises it to 65%.

Furthermore, If there is any load job in progress, it rejects other load jobs by error that no memory available to allocate. When the load job is finished, memory consumption remains 65% and further load jobs occupies more memory. It looks like, memory is not released after CSV load.

---

<div class="post-metadata">

**Author:** ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)\
**Post date:** [December 21, 2020, 9:17pm UTC](https://community.neo4j.com/t/efficient-memory-configuration/30747/2 "2020-12-21T21:17:57Z")

</div>

Hello @usamabin.masood 🙂

You should have a look at `neo4j-admin memrec` command:

> **[Get initial memory recommendations - Operations Manual](https://neo4j.com/docs/operations-manual/current/configuration/neo4j-admin-memrec/)**
>
> This chapter describes the \`memory-recommendation\` command of Neo4j Admin.

Regards,  
Cobra
