flexy-pool

How I can use FlexyPool with HikariCPFactory?

白昼怎懂夜的黑 提交于 2020-01-24 09:00:52
问题 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: <Resource name="jdbc/dictionaryDB" auth="Container" factory="com.zaxxer.hikari.HikariJNDIFactory" type="javax.sql.DataSource" driverClassName="org.postgresql.Driver" jdbcUrl="jdbc:postgresql://localhost:5432/deversdb" username="user" password="pass" maxActive="8" maxIdle="4"/> Please help me, i’am very newbie in connection

Thinking behind decision of database connection pool size

江枫思渺然 提交于 2019-12-03 07:11:49
问题 i am working on opensource java based application i.e xwiki. Insie hibernate.cfg.xml i can see value of parametrs connection.pool_size and statement_cache.siz as 2(for each). My application will be having maximum load of 100 users at point of time. Now my question is what should be ideal connection pool size for this. To me size 2 looks very less. If 100 users connect at a time 98 users have to wait for grtting the connection released? Should i keep the connection pool size as 100 in my case?