All Apps and Add-ons

DB Connection Limit

Sammich
New Member

Does anyone know if there is a maximum number of db connections that the Java Bridge Server can support? I know in the java.conf file you can set the pool.maxActive to specify the maximum number of active database connections, but is there a limit to this?

Tags (1)
0 Karma
1 Solution

ziegfried
Influencer

The limit highly depends on the environment. Both the type operating system and especially the limit on max. open file descriptors and hardware such as available memory will be a limiting factor. The database server might limit the number of connections per host or user as well.

In general pool.maxActive count being higher than the number of available threads will not have any effect since DB Connect will only use/open 1 connection per thread. There are 2 thread-pools for DB Connect:

  • bridge: 10 threads for commands (ie. dbquery, dbinfo, dboutput)
  • dbmon: 5 threads for database inputs

These thread-pool sizes can be configured in java.conf. For example:

[bridge]
threads = 20

[dbmon]
threads = 50

[dbx]
pool.maxActive = 70

This would give a total of 70 available threads, so setting the max. size of the connection pool to 70 is a reasonable choice.

View solution in original post

ziegfried
Influencer

The limit highly depends on the environment. Both the type operating system and especially the limit on max. open file descriptors and hardware such as available memory will be a limiting factor. The database server might limit the number of connections per host or user as well.

In general pool.maxActive count being higher than the number of available threads will not have any effect since DB Connect will only use/open 1 connection per thread. There are 2 thread-pools for DB Connect:

  • bridge: 10 threads for commands (ie. dbquery, dbinfo, dboutput)
  • dbmon: 5 threads for database inputs

These thread-pool sizes can be configured in java.conf. For example:

[bridge]
threads = 20

[dbmon]
threads = 50

[dbx]
pool.maxActive = 70

This would give a total of 70 available threads, so setting the max. size of the connection pool to 70 is a reasonable choice.

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...