Hi
Im suspecting one of our applications is leaking connections. ( See log at bottom)
We are using hibernate 3.2.5 and c3p0 connection pooling.
But I am in doubt on how to determine where the connections leak.
Under what circumstances is the application responsible for returning the connections and when is this done automtically by hibernate?
Is there fex any difference between how to handle a:
getSession().createSQLQuery().executeUpdate()
and a:
getHibernateTemplate().find()
in the same method under the same circumstances?
Appreciate any pointers on how to solve this problem.
Claes
--------- Log --------------------
[DEBUG ] [connector.http.0.receiver.7] org.hibernate.jdbc.ConnectionManager - opening JDBC connection
[DEBUG ] [connector.http.0.receiver.7] org.hibernate.SQL - select productlin0_.productLineId as productL1_12_, productlin0_.CHAN
GEDBY as CHANGEDBY12_, productlin0_.LASTCHANGED as LASTCHAN3_12_, productlin0_.active as active12_, productlin0_.crmCode as crmCode12_, productlin0_.distrib
utionNumber as distribu6_12_, productlin0_.GENERALLEDGERID as GENERAL11_12_, productlin0_.name as name12_, productlin0_.price as price12_, productlin0_.vali
dFromDate as validFro9_12_, productlin0_.VATCODEID as VATCODEID12_ from PRODUCT_LINES productlin0_
[TRACE ] [connector.http.0.receiver.7] org.hibernate.jdbc.AbstractBatcher - preparing statement
[DEBUG ] [connector.http.0.receiver.7] org.springframework.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataS
ource
After this it does nothing more.
|