# Memory related monitoring for Linux systems

**URL:** <https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095>\
**Category:** Alerting\
**Tags:** anomaly-detection\
**Created:** [June 13, 2024, 5:48am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095 "2024-06-13T05:48:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrikanthSamraj](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@SrikanthSamraj](https://community.dynatrace.com/u/SrikanthSamraj)\
**Post date:** [June 13, 2024, 5:48am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/1 "2024-06-13T05:48:38Z")

</div>

Hi,

May I know effective ways to monitor memory related KPI’s without any causing alert fatigue or too much noise at the same time?

Possible options I could think of are,

1. OOTB Memory saturation (combination of memory used % and page faults per sec)

2.&nbsp;builtin:host.mem.usage:filter using metric event (metric key)

3. Swap space used % using metric event (metric selector)

Anything else apart from this?

Regards,

Srikanth

---

<div class="post-metadata">

**Author:** ![Esam\_Eid](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/esam_eid/32/167_2.png) [@Esam\_Eid](https://community.dynatrace.com/u/Esam_Eid)\
**Post date:** [June 13, 2024, 5:55am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/2 "2024-06-13T05:55:04Z")

</div>

Hi&nbsp;[@SrikanthSamraj](https://community.dynatrace.com/user/58568)&nbsp;,

Process memory also could be an option, so you can monitor if a particular process is consuming more memory

Regards,  
Esam

---

<div class="post-metadata">

**Author:** ![SrikanthSamraj](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@SrikanthSamraj](https://community.dynatrace.com/u/SrikanthSamraj)\
**Post date:** [June 13, 2024, 5:59am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/3 "2024-06-13T05:59:54Z")

</div>

Thanks&nbsp;[@Esam\_Eid](https://community.dynatrace.com/user/65475)&nbsp;. Would this require specific process name to be called out explicitly in the metric event ?

---

<div class="post-metadata">

**Author:** ![Esam\_Eid](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/esam_eid/32/167_2.png) [@Esam\_Eid](https://community.dynatrace.com/u/Esam_Eid)\
**Post date:** [June 13, 2024, 6:04am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/4 "2024-06-13T06:04:14Z")

</div>

yes, if you are suspecting one of the processes is eating the memory/CPU resources and you want to keep an eye on it, then you need to specify the process name

---

<div class="post-metadata">

**Author:** ![SrikanthSamraj](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@SrikanthSamraj](https://community.dynatrace.com/u/SrikanthSamraj)\
**Post date:** [June 13, 2024, 7:46am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/5 "2024-06-13T07:46:36Z")

</div>

[@Esam\_Eid](https://community.dynatrace.com/user/65475)&nbsp; - In our case, we don’t know the exact process name and we’re not intending to focus on any specific process instead want it to be generic.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 14, 2024, 7:58pm UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/6 "2024-06-14T19:58:14Z")

</div>

My question would be - what is the issue driving the need. I always recommend letting Dynatrace use the AI to baseline and determine what needs to be alerted. If that doesn’t meet your need then look to adjusting it or putting in the custom metric segment. But without understanding the paint point, I cant give you a rock solid solution.

---

<div class="post-metadata">

**Author:** ![SrikanthSamraj](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@SrikanthSamraj](https://community.dynatrace.com/u/SrikanthSamraj)\
**Post date:** [June 18, 2024, 5:51am UTC](https://community.dynatrace.com/t/memory-related-monitoring-for-linux-systems/46095/7 "2024-06-18T05:51:42Z")

</div>

At present, we monitor swap space used % through metric event (not consuming predefined event type “Memory saturation”).

Client requirement was to monitor physical memory in correlation with swap space usage.

I’m recently aware that using Davis AI anomaly detector such correlation is possible, but I don’t have access to this module yet.

Whilst we’re working on the access part, keen to know if there are any other ways of monitoring memory stuff in Linux server apart from “Memory saturation” and metric events (swap space, memory used %) to avoid any server outages due to spike in memory.
