# APM jar inside k8s container taking more node memory

**URL:** <https://discuss.elastic.co/t/apm-jar-inside-k8s-container-taking-more-node-memory/295827>\
**Category:** APM\
**Tags:** docker, java\
**Created:** [January 31, 2022, 11:21am UTC](https://discuss.elastic.co/t/apm-jar-inside-k8s-container-taking-more-node-memory/295827 "2022-01-31T11:21:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaitanya\_krishna\_ch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitanya_krishna_ch/32/56529_2.png) [@Chaitanya\_krishna\_ch](https://discuss.elastic.co/u/Chaitanya_krishna_ch)\
**Post date:** [January 31, 2022, 11:21am UTC](https://discuss.elastic.co/t/apm-jar-inside-k8s-container-taking-more-node-memory/295827/1 "2022-01-31T11:21:29Z")

</div>

**APM Agent language and version** : java, 1.28.4

APM jar running inside k8s pod taking more node memory. is that expected? How to debug this issue?

---

<div class="post-metadata">

**Author:** ![Sylvain\_Juge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sylvain_juge/32/55521_2.png) [@Sylvain\_Juge](https://discuss.elastic.co/u/Sylvain_Juge)\
**Post date:** [January 31, 2022, 1:35pm UTC](https://discuss.elastic.co/t/apm-jar-inside-k8s-container-taking-more-node-memory/295827/2 "2022-01-31T13:35:01Z")

</div>

Hi @Chaitanya_krishna_ch , can you elaborate a bit please ?

1. what and how do you measure memory usage here ?
2. what are the two (or more) configurations that you compare, what is the baseline configuration ?
3. what is the difference between the two cases ?

It is expected that running the agent requires some extra resources, but it should be rather minimal on most applications.

---

<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:** [February 21, 2022, 9:35am UTC](https://discuss.elastic.co/t/apm-jar-inside-k8s-container-taking-more-node-memory/295827/3 "2022-02-21T09:35:35Z")

</div>

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