[jboss-user] [JBoss Cache] - Using JBOSS Cache does not decrease Transaction Time

Makeshwari Sattanadin do-not-reply at jboss.com
Fri Aug 31 02:00:25 EDT 2012


Makeshwari Sattanadin [https://community.jboss.org/people/8makeshwari] created the discussion

"Using JBOSS Cache does not decrease Transaction Time"

To view the discussion, visit: https://community.jboss.org/message/757142#757142

--------------------------------------------------------------
Hi All,
      I am trying to use JBOSS Cache to my hibernate based web application deployed on TOMCAT Server.
HIbernate.cfg.XML Settings were made to enable entity caching and query caching, but I find that after enabling the caching the transaction time is increased by several bounds.
The same method with Caching took 306 secs and without Caching hitting the Database took only 13,500 millisecs.
On Profiling where the  https://community.jboss.org/servlet/JiveServlet/showImage/2-757142-19333/withCacheEnabled.png  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-757142-19333/450-253/withCacheEnabled.png method level analysis where the time taken is more is when the rows are inserted to the OrderedList Cache.

public class JBossTSTransactionManagerLookup implements TransactionManagerLookup
{
   public javax.transaction.TransactionManager getTransactionManager(Properties properties) throws HibernateException
   {
      return com.arjuna.ats.jta.TransactionManager.transactionManager();
   }
Above is the transaction Manager Implementation used.

Please let me know if I am missing something here.
This is not in a clustered environment and is only one server and one Cache.

Thanks,
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/757142#757142]

Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120831/138c2cf7/attachment-0001.html 


More information about the jboss-user mailing list