-->
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.  [ 1 post ] 
Author Message
 Post subject: Non managed vs. managed performance
PostPosted: Thu Feb 17, 2005 4:54 pm 
Newbie

Joined: Thu Feb 17, 2005 4:40 pm
Posts: 1
Hi,

I'm noticing significant performance degradation when using hibernate code in a managed environment.

Here are the details of my managed environment:

1) I'm using jboss and I deployed my maapings and configuration in a service archive such that the configurations are within an mbean.

2)my datasource:
<datasources>
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://127.0.0.1:3306/abc</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password></password>
<min-pool-size>20</min-pool-size>
<max-pool-size>20</max-pool-size>
<idle-timeout-minutes>1</idle-timeout-minutes>

</local-tx-datasource>
</datasources>

3)Transaction strategy is JDBC.

4)Hibernate code runs in an ejb container (MDB)

5)The MDB more or less queries for an object adds a few association objects and closes the session.

Essentially I have the same logic in a non-managed Hibernate program and I'm getting INSERT performance that is exponentially greater. Further as the MDB continues to labour the INSERT rate goes down.

I'd appreciate some advice, thanks,


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

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.