# Default consumption of os\_memory usage

**URL:** <https://forum.opensearch.org/t/default-consumption-of-os-memory-usage/17542>\
**Category:** OpenSearch\
**Tags:** discuss, troubleshoot\
**Created:** [January 23, 2024, 1:54am UTC](https://forum.opensearch.org/t/default-consumption-of-os-memory-usage/17542 "2024-01-23T01:54:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.opensearch.org/u/Maha)\
**Post date:** [January 23, 2024, 1:54am UTC](https://forum.opensearch.org/t/default-consumption-of-os-memory-usage/17542/1 "2024-01-23T01:54:45Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):

Opensearch 1.2.4

**Describe the issue** :  
Could you please explain me the default memory consumption of opensearch with log insertion at 1000tps.

Total log throughput at data container  
|(log event/sec, avg 500 bytes/event)| Replica |  
|—|—|—|  
|1000|ingest 1, data 2, master 3|

I have set my data container - 2gb

Since I have consumed almost full, I have got 95% usage in graph

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/e/e6b7c34d7deccbc906e06a94625c4664e208adb8.png)

1. I have stopped the input from logstash and deleted the indices and found that the memory usage is nearly 60%,And at the same time the memory by top is still nearly 1.5G.

kubectl top data-0 -n perftest  
NAME CPU(cores) Memory(bytes)  
data-0 36m 1493Mi

 ![image](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/5/5bf8416dbe58c90d239ecf83273c600fa4fdbe84.png)

Could you please explain the behavior here?

---

<div class="post-metadata">

**Author:** ![radu.gheorghe](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/radu.gheorghe/32/3516_2.png) [@radu.gheorghe](https://forum.opensearch.org/u/radu.gheorghe)\
**Post date:** [January 26, 2024, 3:24pm UTC](https://forum.opensearch.org/t/default-consumption-of-os-memory-usage/17542/2 "2024-01-26T15:24:49Z")

</div>

I assume that the operating system used memory for caching. Once you removed data, some of that cache memory was freed up.

You should see this if you do something like `free -m` on the box. Or you can get more detailed memory metrics via something like [Sematext Cloud](https://sematext.com/cloud/) (disclosure: I work for Sematext), especially since it sounds like you’re using Kubernetes and we have good support for both Kubernetes and OpenSearch (running in k8s).

---

<div class="post-metadata">

**Author:** ![Maha](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@Maha](https://forum.opensearch.org/u/Maha)\
**Post date:** [February 21, 2024, 5:07pm UTC](https://forum.opensearch.org/t/default-consumption-of-os-memory-usage/17542/3 "2024-02-21T17:07:21Z")

</div>

Thanks @radu.gheorghe.
