c3p0 Questions

8

Solved

hey all, I'm just getting started with c3p0 for database connection pooling. It's attaching itself to my log4j output currently. How do I set logging off or at least to SEVERE level only for c3p0? ...
Wimbush asked 4/6, 2010 at 17:13

1

Here is exception I am getting This is the configuration I am using in my c3p0 <property name="acquireIncrement">5</property> <property name="preferredTestQuery">SELECT 1<...

6

Solved

I have a model that has a pretty large graph of sub entities and hibernate ends up making around 9 statements to lazily fetch all of the data needed but about 4 levels deep I get a "could not initi...
Dayfly asked 12/4, 2016 at 20:13

2

Solved

I have the follow code in my JAVA program that allows me to copy data from a file into my Postgres database: Connection con = DriverManager.getConnection("jdbc:postgresql://localhost:####/myDb", ...
Nightgown asked 26/1, 2013 at 17:55

2

We had an outage event recently where the application threads got stuck while retrieving connections from c3p0. The configuration set is the following: Version of c3p0 used: 0.9.1.2 c3p0.acquir...
Dogmatic asked 19/9, 2013 at 3:51

2

We have a [Hibernate + c3p0 + MySQL] config for our project. We are hitting the following exception: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a r...
Hexa asked 20/11, 2012 at 21:49

3

Solved

I have console application that hangs during execution. Here is my configuration: cfg.setProperty("hibernate.connection.driver_class", "com.mysql.jdbc.Driver"); cfg.setProperty("hibernate.connec...
Syncytium asked 31/12, 2012 at 20:45

2

Solved

I use c3p0-0.9.5.2.jar and mchange-commons-java-0.2.11.jar to manage the pool connection, And I use postgreSql 9.3. I get these messages at least once a day in my Prod environment : Caused by: ja...
Romanaromanas asked 5/12, 2017 at 10:54

3

Solved

I am using Hibernate 4.3.11.Final and H2 1.3.172 database and I was profiling my application on a slow linux box and finding it was spending more time on a particular SQL INSERT then anything else....
Artamas asked 4/9, 2018 at 19:36

7

Solved

I'm using Hibernate's c3p0 connection pooling and standard Java 1.4 java.util.logging. Upon startup, my app sets up it's logging properties (including formatter and log levels) in static block. Eve...
Bauxite asked 16/4, 2011 at 12:52

4

Solved

According to http://sourceforge.net/projects/c3p0/files/bin/ it seems that the last stable version of c3p0 was released in 2007. Isn't it abandoned project? We use it heavily and it works fine, ...
Chongchoo asked 30/12, 2011 at 10:16

5

I am using Hibernate 4, PostgreSQL and C3P0. In my web application, after sometime I am getting multiple SHOW TRANSACTION ISOLATION LEVEL queries in database due to which my server gets hang. In ...
Lullaby asked 2/2, 2016 at 6:42

3

Solved

I want to configure my c3p0 connection pool so that at least 2 connections are always active, at most 5, and idle connections past the first 2 will expire in a reasonable amount of time (say an hou...
Isoelectronic asked 27/3, 2014 at 17:44

6

I have MySQL under my Hibernate and I am also using c3p0-0.9.1 for connection pool. When running on my laptop (I mean locally) I have no errors. But when I deploy it on the server, I get this exce...
Electronics asked 12/8, 2010 at 8:22

11

Solved

I am using JPA and c3p0 and attempting to query a table and getting back a stack trace claiming that the table doesn't exist. I can open a connection to the db in, for example, DbVisualizer, and se...
Yamamoto asked 29/4, 2013 at 20:39

15

Solved

What is the best connection pooling library available for Java/JDBC? I'm considering the 2 main candidates (free / open-source): Apache DBCP - http://commons.apache.org/dbcp/ C3P0 - http:...
Margaretamargarete asked 6/2, 2009 at 14:57

3

I am connecting to MySQL over SSL from my Java application. I have configured MYSQL to support SSL and generated client certificates. I have imported server CA certificate and client certificate in...
Civilly asked 10/1, 2013 at 18:47

4

Within our project, we have updated Spring to 4.3.14.RELEASE and Hibernate to 4.3.11.Final and since we have started seeing two warnings: WARN JDBC Connection to reset not identical to original...
Nuzzle asked 19/2, 2018 at 5:31

3

Solved

In my project I started to use c3p0 with hibernate for reconnecting to database as hibernate won't restore connection on db failure. <dependency> <groupId>org.hibernate</groupId&gt...
Phonetics asked 29/9, 2017 at 16:48

11

I'm using C3P0 as a connection pool in Tomcat, and I'm seeing very worrying errors: 2010-09-16 13:25:00,160 [Timer-0] WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner - com.mchange.v2.async....
Dade asked 16/9, 2010 at 21:9

4

Solved

I have a basic Spring JDBC application with a pretty basic configuration: <bean id="myDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="dri...
Culley asked 25/2, 2011 at 12:25

0

I'm using C3P0 connection pool and PostgreSQL(10.3) in AWS RDS. I did a load test at low TPS (1 TPS) for 2 minutes, after load test finished, the number of connections were not dropped according t...

7

I'm creating an application with Hibernate JPA and I use c3p0 for connection pooling with MySQL. I have an issue with the number of connections to the MySQL database as it hits the 152 opened conne...
Alvinia asked 8/9, 2015 at 14:24

3

Solved

I've using Hibernate ORM for a year now and c3p0 about a couple of months. I've read on web, c3p0 is a JDBC connection and statement pooling library, that enhances JDBC drivers. But, I wants to kn...
Dizzy asked 17/4, 2014 at 18:17

2

Solved

I need to establish DB connectionfailover in SpringBoot application(embedded tomcat) for ibatis with jdbctemplate which uses c3p0 for connection pooling.Below is the applicaiton.properties of my ap...
Quinquagesima asked 25/6, 2018 at 12:30

© 2022 - 2024 — McMap. All rights reserved.