# Capture the database ActiveConnectionsCurrentCount for WebLogic datasources

**URL:** <https://community.dynatrace.com/t/capture-the-database-activeconnectionscurrentcount-for-weblogic-datasources/20758>\
**Category:** Extensions\
**Tags:** databases, extensions\
**Created:** [May 23, 2019, 4:39pm UTC](https://community.dynatrace.com/t/capture-the-database-activeconnectionscurrentcount-for-weblogic-datasources/20758 "2019-05-23T16:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [May 23, 2019, 4:39pm UTC](https://community.dynatrace.com/t/capture-the-database-activeconnectionscurrentcount-for-weblogic-datasources/20758/1 "2019-05-23T16:39:18Z")

</div>

I see there are other threads on this topic, but its still not exactly clear to me which one I would use for what I am after. I am using the JMX Editor to try and capture the database ActiveConnectionsCurrentCount for WLS datasources. When setting this up though there is SUM and Count. I am not exactly sure what the difference is and which one I would use in this situation?

Thanks!

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 3, 2019, 6:37am UTC](https://community.dynatrace.com/t/capture-the-database-activeconnectionscurrentcount-for-weblogic-datasources/20758/2 "2019-06-03T06:37:10Z")

</div>

I think you want to use COUNT for this metric. The metric will then reflect the actual count of the collected JMX attribute in the given point in time.  
If you choose, SUM then as it says, it will sum the measured value. This would reflect the total number of connections. This might not be precise since the measurement is done every minute and you won’t have information about connections that have been opened and closed between measurement times.

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [June 3, 2019, 11:35am UTC](https://community.dynatrace.com/t/capture-the-database-activeconnectionscurrentcount-for-weblogic-datasources/20758/3 "2019-06-03T11:35:46Z")

</div>

Thank you [@Julius L.](https://answers.dynatrace.com/users/16467/view.html) Much appreciated!
