# Creataing custom alert for active JVM thread count hike

**URL:** <https://community.dynatrace.com/t/creataing-custom-alert-for-active-jvm-thread-count-hike/37793>\
**Category:** Alerting\
**Tags:** anomaly-detection, problems-classic\
**Created:** [December 23, 2022, 11:44am UTC](https://community.dynatrace.com/t/creataing-custom-alert-for-active-jvm-thread-count-hike/37793 "2022-12-23T11:44:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghavendra\_j](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@Raghavendra\_j](https://community.dynatrace.com/u/Raghavendra_j)\
**Post date:** [December 23, 2022, 11:44am UTC](https://community.dynatrace.com/t/creataing-custom-alert-for-active-jvm-thread-count-hike/37793/1 "2022-12-23T11:44:15Z")

</div>

How to create a custom alert for an active JVM thread count hike?

---

<div class="post-metadata">

**Author:** ![D\_Miller](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/d_miller/32/22229_2.png) [@D\_Miller](https://community.dynatrace.com/u/D_Miller)\
**Post date:** [December 23, 2022, 1:59pm UTC](https://community.dynatrace.com/t/creataing-custom-alert-for-active-jvm-thread-count-hike/37793/2 "2022-12-23T13:59:06Z")

</div>

Hello,

Are you meaning when the number of Active threads reaches a certain threshold or are you looking at an alert at the rate of increase?

The former is easily achieved by creating a Metric Event&nbsp; (Setting \> Anomaly detection \> Metric Events)

Then using the Metric&nbsp;builtin:tech.websphere.threadPoolModule.ActiveCount and applying any filters for the scope e.g. ProcessGroups and Pools you can set a defined Threshold limit to alert on.

With regards to the latter. I don’t know how to alert for an increase or hike

---

<div class="post-metadata">

**Author:** ![Ana.Kuzmenchuk](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Ana.Kuzmenchuk](https://community.dynatrace.com/u/Ana.Kuzmenchuk)\
**Post date:** [January 2, 2023, 12:17pm UTC](https://community.dynatrace.com/t/creataing-custom-alert-for-active-jvm-thread-count-hike/37793/3 "2023-01-02T12:17:28Z")

</div>

Hey&nbsp;[@Raghavendra\_j](https://community.dynatrace.com/user/55366), was the solution described above helpful? Hope you were able to solve your issue regardless&nbsp;:blush:
