Bonjour. je travaille actuellement avec hibernate et c3p0 (la version c3p0-0.9.1.2).
En production, après un certain temps de fonctionnement mon application se bloque, et rien n'avance.
Je constate ce blocage sur les pages ayant des données dynamiques a puise en base (donc lié a hibernate et c3p0). Sur le forum j'ai constaté que beaucoup avait ce probleme, mais je me permets de poster. Quelque peut etre a une solution a ce probleme
Ci dessous mon fichier de configuration hibernate
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
 
<hibernate-configuration>
 
    <session-factory>
		<property name="hibernate.cglib.use_reflection_optimizer">false</property>
        <!-- Database connection settings -->
        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
        <property name="connection.url">jdbc:mysql://127.0.0.1/ciospbbd</property>
        <property name="connection.username">root</property>
        <property name="connection.password"></property>
 
        <!-- JDBC connection pool (use the built-in)   -->
        <property name="hibernate.c3p0.min_size">3</property>
		<property name="c3p0.max_size">15</property>
		<property name="hibernate.c3p0.timeout">5000</property>
		<property name="hibernate.c3p0.max_statements">0</property>
        <!-- SQL dialect -->
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
	 <property name="hibernate.c3p0.acquire_ increment">3</property>
	 <property name="hibernate.c3p0.idle_test period">300</property>
 
 
 
        <!-- Enable Hibernate's automatic session context management -->
        <property name="current_session_context_class">thread</property>
 
        <!-- Disable the second-level cache   -->
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> 
 
 
 
        <!-- Echo all executed SQL to stdout -->
        <property name="show_sql">true</property> 
 
 
 
 
....
    </session-factory>
 
</hibernate-configuration>
Je suis en train de préparer des tests sur irontrack pour voir si j'ai des connexions qui lachent