Questions tagged [flexy-pool]

FlexyPool is a connection pool monitoring framework that allows you to get a better insight into how the pool is being used.

The FlexyPool framework adds metrics and flexible strategies to a given Connection Pool, allowing it to resize on demand. This is very handy since most connection pools offer a limited set of dynamic configuration strategies.

It supports many connection pools:

  • Apache DBCP
  • Apache DBCP2
  • C3P0
  • BoneCP
  • HikariCP
  • Tomcat CP
  • Vibur DBCP
  • Bitronix Transaction Manager
  • Atomikos TransactionsEssentials
  • a generic Java EE adaptor

It collects statistics about:

  • concurrent connections histogram
  • concurrent connection requests histogram
  • data source connection acquiring time histogram
  • connection lease time histogram
  • maximum pool size histogram
  • total connection acquiring time histogram
  • overflow pool size histogram
  • retries attempt histogram
9 questions
26
votes
4 answers

Thinking behind decision of database connection pool size

i am working on opensource java based application i.e xwiki. Inside hibernate.cfg.xml i can see value of parameters connection.pool_size and statement_cache.size as 2 (for each). My application will be having maximum load of 100 users at point of…
M Sach
  • 33,416
  • 76
  • 221
  • 314
3
votes
1 answer

Jooq: HikariCP connection monitoring

With Jooq how can I monitor the HikariCp Connection pool? Just like for JPA I can use flexy-pool. But for flexy-pool, we need to provide configuration by extending HickariCpJpaPostgresConfiguration. But for Jooq unable to find anything. Metrics I am…
GauravRatnawat
  • 717
  • 1
  • 11
  • 25
3
votes
1 answer

How I can use FlexyPool with HikariCPFactory?

I want measure metrics on my datasource comparing HikariCP and C3pO. I don’t understand how I can use FlexyPool in my project. I have Tomcat context.xml and HikariCP:
S_T_I_M
  • 31
  • 6
2
votes
1 answer

Why does Flexy-Pool cause a NoSuchElementException when configured via Spring in Apache Storm

I have an Apache Storm (1.1.1) based application, which uses Spring (5.0.3) to configure and inject Hibernate-based (5.2.12) database services, which connect to a PostgreSQL database. Between Hibernate and the database, I have configured flexy-pool…
rzo1
  • 5,561
  • 3
  • 25
  • 64
1
vote
0 answers

How I can use FlexyPool with a custom DataSourceFactory?

I have a simple Tomcat application setup to use a MySQL data source with a custom DataSourceFactory. The context.xml is give below. The custom factory is used merely to the placeholders ({{driver}}) with actual values at runtime.
Manoj Govindan
  • 72,339
  • 21
  • 134
  • 141
1
vote
1 answer

How to monitor multiple JNDI datasources with FlexyPool?

I am starting to use FlexyPool to monitor an JNDI datasource managed by Tomcat. I found how to monitor one datasource in this answer and in FlexyPool doc. I can not, however, figure how to configure the monitoring of multiple sources through the…
Ludovic Pénet
  • 1,136
  • 1
  • 16
  • 32
1
vote
1 answer

flexypool for DB2 and Oracle Datasources

We uses the below connection pools in our application 1) DB2DataSource 2) OracleDataSource Can we implement flexypool metrics and failover strategies to the above connection pools? I didn't find any specific doc or example code related to it under…
It's Me
  • 43
  • 6
0
votes
1 answer

Hibernate 5 Core + FlexyPool

I'm trying to develop an Hibernate 5 Core application and I'm using hibernate.cfg.xml to build the SessionFactory. For DB connection, I'm using HikariCP connection pooling but I wanted to retrieve some metrics using FlexyPool. My current…
0
votes
1 answer

How can I use external jar files in my Ewon project?

I am working with Ewon hardware project which supports javaetk run time environment. Now some of the functionality like JsonReader, Logger, etc are not available in javaetk. So I download this jar file externally and include it in my project. Looks…
Vineet Gandhi
  • 73
  • 1
  • 1
  • 6