# Native memory leak with olt plugin

**URL:** <https://forum.opensearch.org/t/native-memory-leak-with-olt-plugin/9997>\
**Category:** OpenDistro\
**Created:** [June 21, 2022, 8:54am UTC](https://forum.opensearch.org/t/native-memory-leak-with-olt-plugin/9997 "2022-06-21T08:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![makam.sreekanth](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@makam.sreekanth](https://forum.opensearch.org/u/makam.sreekanth)\
**Post date:** [June 21, 2022, 8:54am UTC](https://forum.opensearch.org/t/native-memory-leak-with-olt-plugin/9997/1 "2022-06-21T08:54:46Z")

</div>

in our cluster we use olt plugin version 7.8.1. Open distro version is 1.9.0.0.

We are observing native memory growth as below.

**Steps to reproduce:**

- **Create a simple index**

```auto
curl -H "Content-type: application/json" -X PUT --insecure https://localhost:9200/test1 -d '{
  "settings": 
    {
      "number_of_shards": 1  
    },
  "mappings": 
    {    
      "properties": 
        { "field1": { "type": "text" } }  
    }
}'

```

- **In loop update any setting of it**

```auto

for ((i=1;i<=100;i++))
do
    curl -H "Content-type: application/json" -X PUT --insecure https://locahost:9200/test1/_settings -d '{
      "settings": {
        "index.unassigned.node_left.delayed_timeout": "5m"
      }
    }'
done

```

- **Monitor the process memory using top or ps command**  
RSS memory keeps increasing. It never releases. For every index creation/setting update memory increases by 1MB.  
So above loop of 100 create a leak of 100MB.

- **How did we relate this leak to OLT plugin?**  
removed the plugin and ran the same loop. We don’t see any increase in memory.

---

<div class="post-metadata">

**Author:** ![kris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/kris/32/2208_2.png) [@kris](https://forum.opensearch.org/u/kris)\
**Post date:** [February 7, 2023, 6:45pm UTC](https://forum.opensearch.org/t/native-memory-leak-with-olt-plugin/9997/2 "2023-02-07T18:45:48Z")

</div>


