# Increase of memory in logstash when certificate reload time is kept as 5min

**URL:** <https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870>\
**Category:** Logstash\
**Created:** [November 1, 2022, 5:59am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870 "2022-11-01T05:59:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![teja\_tata](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@teja\_tata](https://discuss.elastic.co/u/teja_tata)\
**Post date:** [November 1, 2022, 5:59am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/1 "2022-11-01T05:59:17Z")

</div>

When certificate rotations time is kept as 5min will there be any increase in memory in logstash?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 1, 2022, 7:21am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/2 "2022-11-01T07:21:23Z")

</div>

There's not really a lot to go on here.  
Certificate rotation for what exactly?

---

<div class="post-metadata">

**Author:** ![teja\_tata](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@teja\_tata](https://discuss.elastic.co/u/teja_tata)\
**Post date:** [November 1, 2022, 10:27am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/3 "2022-11-01T10:27:32Z")

</div>

Actually here certificate is for TLS connection to be establishing. If I decrease certificate reload time to 5min then there pipeline reload happening in logstash which means logstash reconnects with destination. Issue is when testing this way we could observe increase memory in logstash. Any idea @warkolm why this increase is happening

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 2, 2022, 10:01pm UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/4 "2022-11-02T22:01:21Z")

</div>

Again, it's not clear what you are talking about in regards to certificate reload.

Sharing some configuration would be useful, as would how you're identifying this memory increase.

---

<div class="post-metadata">

**Author:** ![teja\_tata](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@teja\_tata](https://discuss.elastic.co/u/teja_tata)\
**Post date:** [November 3, 2022, 6:20am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/5 "2022-11-03T06:20:49Z")

</div>

Actually I was checking two scenarios here  
Scenario 1: Certificate reload happen for every 5min in logstash.  
In this case I have checked cpu usage where I could see linear increase in memory  
Scenario 2: Certificate reload happen after every 1 week in logstash.  
Here memory is stable

These two scenarios I have been checking after testing for 3 days.  
So my question, Is there any reason for increase in memory of logsatsh when certificate reload happens?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 3, 2022, 6:34am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/6 "2022-11-03T06:34:53Z")

</div>

I'm sorry, I cannot answer your question without the information you have provided.

---

<div class="post-metadata">

**Author:** ![teja\_tata](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@teja\_tata](https://discuss.elastic.co/u/teja_tata)\
**Post date:** [November 3, 2022, 11:36am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/7 "2022-11-03T11:36:07Z")

</div>

ok, Could you suggest me like what all values are required may be I can collect and update the details here.  
Thank you for your patience

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 1, 2022, 11:36am UTC](https://discuss.elastic.co/t/increase-of-memory-in-logstash-when-certificate-reload-time-is-kept-as-5min/317870/8 "2022-12-01T11:36:21Z")

</div>

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