Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [Persistence, JBoss/CMP, Hibernate,
 Database] - JBoss4.0.5 Datasource connection too slow

scott.stark@jboss.org

2007-08-07


Hi All,

I wonder if anybody else has faced this problem but, we are facing the following issue:

* Connection object from the JBoss connection pool setting below:
<local-tx-datasource>
  <jndi-name>DefaultDS</jndi-name>
  <connection-url>jdbc:mysql://localhost:3306/einstix</connection-url>
  <driver-class>com.mysql.jdbc.Driver</driver-class>
  <min-pool-size>5</min-pool-size>
  <max-pool-size>20</max-pool-size>  
  <security-domain>EncryptDBPassword</security-domain>
   
    <type-mapping>mySQL</type-mapping>
   
  </local-tx-datasource>

* For a simple query of retrieving about 15000 records from a simple table takes upto 12 mins to process

Any suggestion what could be the problem.

Also note that if the same query is made using a connection obtained directly using the standard JDBC DriverManager.getConnection(), results processed within less than 30secs.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071815#4071815

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071815
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.