-->
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.  [ 2 posts ] 
Author Message
 Post subject: Duplicate Query
PostPosted: Fri Jul 24, 2009 6:08 am 
Newbie

Joined: Fri Jul 24, 2009 5:58 am
Posts: 3
Hi all,

I have a problem when a query takes more than 80 seconds, it automatically gets duplicated and if the duplicated one reaches the 80 seconds generates another thread more. Probably I have something bad configured but I don't know why.

This is my configuration:

<hibernate-configuration>
<session-factory>
<!-- local connection properties -->
<property name="hibernate.connection.url">
jdbc:mysql://localhost/copiaPro
</property>
<property name="hibernate.connection.driver_class">
org.gjt.mm.mysql.Driver
</property>
<!-- property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> -->
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">root</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.use_second_level_cache">false</property>
<property name="hibernate.cache.use_query_cache">false</property>
<property name="hibernate.max_fetch_depth">3</property>

<!-- configuration pool via c3p0-->
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">10800</property> <!-- seconds -->
<property name="c3p0.max_size">40</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">0</property>
<property name="c3p0.timeout">100</property> <!-- seconds -->
<property name="connection.autoReconnectForPools">true</property>
<property name="c3p0.acquireRetryAttempts">2</property>
<property name="c3p0.automaticTestTable">C3P0TestTable</property>
<property name="c3p0.testConnectionOnCheckout">true</property>



Thanks for reading me and hope to hear from you soon... this really desperates me.


Top
 Profile  
 
 Post subject: Re: Duplicate Query
PostPosted: Thu Jul 30, 2009 7:47 am 
Newbie

Joined: Fri Jul 24, 2009 5:58 am
Posts: 3
Any Idea?

Thank you people!


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

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.