# How to set an alert for JMS connection pool exhausted?

**URL:** <https://community.dynatrace.com/t/how-to-set-an-alert-for-jms-connection-pool-exhausted/54384>\
**Category:** Extensions\
**Tags:** jmx, problems, extensions, ibm-mq\
**Created:** [December 15, 2025, 2:10am UTC](https://community.dynatrace.com/t/how-to-set-an-alert-for-jms-connection-pool-exhausted/54384 "2025-12-15T02:10:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anbu](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Anbu](https://community.dynatrace.com/u/Anbu)\
**Post date:** [December 15, 2025, 2:10am UTC](https://community.dynatrace.com/t/how-to-set-an-alert-for-jms-connection-pool-exhausted/54384/1 "2025-12-15T02:10:50Z")

</div>

I have set up a JMX/PMI extension for monitoring the JMS connection pool, and I am tracking the following metrics:

1. Pool size
2. Free pool size
3. Waiting time
4. Waiting thread count

How can I configure an alert in Dynatrace to notify me when the JMS connection pool is exhausted

---

<div class="post-metadata">

**Author:** ![lubrman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lubrman/32/7353_2.png) [@lubrman](https://community.dynatrace.com/u/lubrman)\
**Post date:** [December 15, 2025, 9:44am UTC](https://community.dynatrace.com/t/how-to-set-an-alert-for-jms-connection-pool-exhausted/54384/2 "2025-12-15T09:44:36Z")

</div>

Hi&nbsp;[@Anbu](https://community.dynatrace.com/user/98484)&nbsp;  
If you are using Dynatrace Managed, the only option is via metric events, where you define the metric and the corresponding threshold.  
[https://docs.dynatrace.com/managed/discover-dynatrace/platform/davis-ai/anomaly-detection/set-up-a-customized-anomaly-detector/how-to-set-up/metric-events](https://docs.dynatrace.com/managed/discover-dynatrace/platform/davis-ai/anomaly-detection/set-up-a-customized-anomaly-detector/how-to-set-up/metric-events)

If you are using Dynatrace SaaS, you have more options. You can use metric events, or alternatively SRG

> **[Site Reliability Guardian](https://docs.dynatrace.com/docs/deliver/site-reliability-guardian)**
>
> Automatically validate the performance, availability, and capacity objectives of your critical services to make the right release decision.
