Et si tu essayais avec un autre pool de connexion ?
Quels sont tes paramètres c3p0 ?
J'utilise le driver jdbc pour SQL Server 2005, ja'i essayé de mettre le pool plus grand mais c'est pareil..
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 <bean class="com.mchange.v2.c3p0.ComboPooledDataSource" id="dataSource" destroy-method="close"> <property name="driverClass"> <value>${datasource.driver}</value> </property> <property name="jdbcUrl"> <value>${datasource.url}</value> </property> <property name="user"> <value>${datasource.username}</value> </property> <property name="password"> <value>${datasource.password}</value> </property> <property name="acquireIncrement"> <value>5</value> </property> <property name="minPoolSize"> <value>10</value> </property> <property name="maxPoolSize"> <value>100</value> </property> <property name="initialPoolSize"> <value>50</value> </property> <property name="checkoutTimeout"> <value>90000</value> </property> <property name="maxStatements"> <value>0</value> </property> <property name="maxStatementsPerConnection"> <value>5</value> </property> <property name="automaticTestTable"> <value>c3p0_test_table</value> </property> <property name="numHelperThreads"> <value>20</value> </property> </bean>
Articles: Richfaces - JBosstools pour JSF.
Tu pourrais déjà faire un test en retirant "automaticTestTable"
Articles: Richfaces - JBosstools pour JSF.
Ça peut également venir du driver JDBC, mais là... c'est une autre histoire![]()
Articles: Richfaces - JBosstools pour JSF.
même avec la dernière version du driver; j'ai le même problème, je vais tester un autre gestionnaire de pool.
Articles: Richfaces - JBosstools pour JSF.
re bonjour,
j'ai testé avec un autre gestionnaire de pool et pas d'amélioration, par contre, je remarque que sur tomcat5.5 l'usage de CPU augmente si j'ai boucp d'utilisateurs en même temps mais le pique sur 99% dure plus longtemps, avec tomcat 6, même avec 5 utilisateurs, le serveur monte à 99% mais cela ne dure pas longtemps si je mets entre 50 et 100 utilisateurs, il reste un moment entre 97 et 99.9%, le serveur ne tombe pas mais le temps de réponse est très long.
Je pense toujours que le problème vient du chargement des objets hibernate, voilà ma config hibernate si quelqu'un voit un problème:
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
47
48
49
50
51
52
53
54
55
56
57
58
59 <bean class="org.springframework.orm.hibernate3.LocalSessionFactoryBean" id="sessionFactory" singleton="true"> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect"> org.hibernate.dialect.SQLServerDialect </prop> <prop key="current_session_context_class"> thread</prop> <prop key="hibernate.max_fetch_depth">2</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.format_sql">true</prop> <prop key="hibernate.cache.provider_class">org.hibernate.cache.OSCacheProvider</prop> <prop key="hibernate.cache.use_query_cache">true</prop> <prop key="hibernate.cache.use_second_level_cache">false</prop> <prop key="hibernate.cglib.use_reflection_optimizer">true</prop> <prop key="hibernate.jdbc.bach_size">40</prop> <prop key="hibernate.generate_statistics">false</prop> <prop key="hibernate.connection.release_mode"> auto </prop> <prop key="default_schema">dbo</prop> </props> </property> <property name="dataSource"> <ref local="dataSource" /> </property> <property name="mappingResources"> <list> <value>xxxx.hbm.xml</value> ... </list> </property> </bean> <bean id="hibernate-type-logging-workaround" class="com.filmat.kb.logger.LogHibernateHelper" singleton="true" /> <!-- Spring Data Access Exception Translator Defintion --> <bean id="jdbcExceptionTranslator" class="org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator"> <property name="dataSource"> <ref bean="dataSource" /> </property> </bean> <!-- Hibernate Template Defintion --> <bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> <property name="jdbcExceptionTranslator"> <ref bean="jdbcExceptionTranslator" /> </property> </bean> <bean class="com.xx.model.dao.hibernate.ServerDAOImpl" id="serverDao"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> </bean> <bean class="com.xx.model.service.impl.ServerServiceImpl" id="serverService"> <property name="serverDao"> <ref bean="serverDao" /> </property> </bean>
Articles: Richfaces - JBosstools pour JSF.
problème toujours d'actualité ou as-tu trouvé une solution ?
Articles: Richfaces - JBosstools pour JSF.
Partager