# IBM WebSphere Liberty JMX/PMI JDBC Connection Pool Size

**URL:** <https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709>\
**Category:** Extensions\
**Tags:** ibm, jmx\
**Created:** [January 9, 2022, 1:05pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709 "2022-01-09T13:05:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [January 9, 2022, 1:05pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709/1 "2022-01-09T13:05:22Z")

</div>

Dear All,

I wanted to have the information about&nbsp; **JDBC Connection Pool Size** &nbsp;and **Hung Threads** using the&nbsp;JMX/PMI custom metrics.

I found that there are limited options for the IBM WebSphere Liberty comparatively&nbsp;IBM WebSphere.

Is there any other way to grasp this information and use it for custom anomaly detection?

Regards,

Babar

---

<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 4, 2022, 2:13am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709/2 "2022-06-04T02:13:04Z")

</div>

[@Babar\_Qayyum](https://community.dynatrace.com/user/22017)&nbsp;did you get any insight into this?

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [June 4, 2022, 3:41pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709/3 "2022-06-04T15:41:01Z")

</div>

Hello&nbsp;[@ChadTurner](https://community.dynatrace.com/user/14877)

Unfortuatially, not yet. I realized that Dynatrace is not providing much metrics information like the traditional WebSphere.&nbsp;To overcome this limitation, we plan to use Oracle DB Insight to monitor the health/metrics of independent databases.

I read somewhere in the documentation that there will be an enhancement for the liberty processes extraction out of the box as currently, we use the advanced processes properties to extract the processes. I hope they will consider providing additional metrics.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [June 7, 2022, 7:45am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709/4 "2022-06-07T07:45:48Z")

</div>

Hi,

For WebSphere Liberty,&nbsp; It can be fiddly depending on the technology that is implemented for your app.

For Database calls, I have found that quite commonly in Liberty, people tend to use Hikari drivers rather than standard Oracle / JDBC ones.&nbsp; In the instance of Hikari, it won’t write to JMX unless you enable it within the framework (this is similar to some other popular DB driver frameworks)

You should be able to see what is available via the&nbsp; standard JMX plugin builder and see if it has what you need.

Here’s a list of the defaults

Reference guide:&nbsp;[List of provided MBeans - IBM Documentation](https://www.ibm.com/docs/en/was-liberty/base?topic=liberty-list-provided-mbeans)

In our instances, we needed to get the devs / build team to enable Hikari → jmx&nbsp; config across the liberty apps, and then write a seperate HikariCP jmx plugin.&nbsp; Between the Liberty jmx plugin and&nbsp; the Hikari plugin, we got what we needed.

Best to start by having a chat to the Devs about what frameworks they are using, so you can check if it has JMX outputs.

Have Fun.

---

<div class="post-metadata">

**Author:** ![harald\_berger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/harald_berger/32/31754_2.png) [@harald\_berger](https://community.dynatrace.com/u/harald_berger)\
**Post date:** [June 8, 2022, 11:44am UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709/5 "2022-06-08T11:44:15Z")

</div>

Hi,

Please note that for Websphere Liberty there is out-of-the-box support for built-in connection pools. But the monitoring feature in Liberty has to be turned on manually as documented.

> **[Simplify troubleshooting with AI-powered insights into connection pool...](https://www.dynatrace.com/news/blog/simplify-troubleshooting-with-ai-powered-insights-into-connection-pool-performance-early-adopter/)**
>
> Dynatrace JMX extensions give you instant visibility into database connection pools for top application servers such as Apache Tomcat and many others.

Details on the IBM site

[https://www.ibm.com/docs/en/was-liberty/nd?topic=10-connectionpool-monitoring](https://www.ibm.com/docs/en/was-liberty/nd?topic=10-connectionpool-monitoring)

Then all connection pool metrics will appear automatically.

Also other metrics like the thread pools or servlet stats will appear then.

Best

Harry

---

<div class="post-metadata">

**Author:** ![mdouds](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@mdouds](https://community.dynatrace.com/u/mdouds)\
**Post date:** [June 9, 2022, 7:32pm UTC](https://community.dynatrace.com/t/ibm-websphere-liberty-jmx-pmi-jdbc-connection-pool-size/33709/6 "2022-06-09T19:32:30Z")

</div>

It was already mentioned in one of the links that harald\_bergers provided already, but make sure you have enabled the monitor-1.0 feature in your Liberty applications. This will expose the ConnectionPool Mbean as seen here:&nbsp;[https://www.ibm.com/docs/en/was-liberty/core?topic=10-connectionpool-monitoring](https://www.ibm.com/docs/en/was-liberty/core?topic=10-connectionpool-monitoring)
