-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Conections not closing
PostPosted: Tue Jan 20, 2009 12:07 pm 
Beginner
Beginner

Joined: Tue Aug 21, 2007 4:58 am
Posts: 30
Hi,
I have the following problem, I have been assign a project in which the connections are really badly managed, most times they are not closed. Since there are lots of places where the connections are open and not closed, I have configured hiberanate so it closses all idle connections while I change all the code, the thing is that right now there are over 200 connections open for over 8000 seconds, and hibernate does not close them.
This is my configuration:


hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.connection.driver_class = org.gjt.mm.mysql.Driver
hibernate.connection.url = jdbc:mysql://localhost/opencms?autoReconnect=true&characterEncoding\=UTF-hibernate.connection.username = ***
hibernate.connection.password = ***

hibernate.connection.autoReconnect = true
hibernate.connection.autoReconnectForPools = true
hibernate.connection.is-connection-validation-required = true
hibernate.connection.charset = UTF-8
#hibernate.c3p0.min_size = 10
#hibernate.c3p0.max_size = 100
hibernate.c3p0.timeout = 100
#hibernate.c3p0.acquireRetryAttempts = 30
#hibernate.c3p0.idleConnectionTestPeriod = 36000
hibernate.c3p0.initialPoolSize = 20
hibernate.c3p0.maxPoolSize = 200
hibernate.c3p0.maxIdleTime = 100
hibernate.c3p0.maxStatements = 50
hibernate.c3p0.minPoolSize = 10
hibernate.dbcp.maxIdle=10
hibernate.c3p0.idle_test_period=100


Any ideas?

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.