# Community Edition - How to configure the memory to avoid OOM

**URL:** <https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648>\
**Category:** Configuration\
**Created:** [September 18, 2019, 6:55am UTC](https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648 "2019-09-18T06:55:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![totola](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@totola](https://discuss.aerospike.com/u/totola)\
**Post date:** [September 18, 2019, 6:55am UTC](https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648/1 "2019-09-18T06:55:31Z")

</div>

our mechine is 62G memory , we configure 60G to aerospike with high-water-memory-pct 80% but when usage reach the high-water-mark the aerospike cause oom crash my question is what is the best practice of the precentage of memory to configure , when aerospike is the only service in mechine

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [September 19, 2019, 3:57am UTC](https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648/2 "2019-09-19T03:57:44Z")

</div>

I usually leave 8-10GB of memory to the system. The ‘rule of thumb’ is 10%, but that is really too little for very small machines and way too much for systems with 700GB+mem.

---

<div class="post-metadata">

**Author:** ![totola](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@totola](https://discuss.aerospike.com/u/totola)\
**Post date:** [September 19, 2019, 9:16am UTC](https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648/3 "2019-09-19T09:16:12Z")

</div>

thanks for your reply , the documentation just say " Make sure that the combined `memory-size` of your namespaces does not exceed the available RAM on the machine. Enough memory should be reserved for the OS, namespace overhead, and other software running on the machine." but that not very clearly for me to make decision . i think if i can limit the maximum use of buffer memory and cache memory use may help

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [September 20, 2019, 9:05am UTC](https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648/4 "2019-09-20T09:05:41Z")

</div>

Buffer and cache memory are almost synonymous with free. If the only remaining memory is buffer/cache, the kernel will give that to processes requesting memory.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [September 26, 2019, 9:05am UTC](https://discuss.aerospike.com/t/community-edition-how-to-configure-the-memory-to-avoid-oom/6648/5 "2019-09-26T09:05:44Z")

</div>

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.
