Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

Hibernate hangs with Jetty,Cocoon!?

 
Marko Jyrkinen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am new to hibernate and I try to build a prototype using Jetty, Cocoon and Hibernate. I am calling hibernate by using Java Classes, which are called from Extended Server Pages (XSP). I have also created a help class HibernateUtil.java which manages the Hibernate Sessions and Transactions. The latest version, which I tried is the following:

http://www.gloegl.de/16.html#A6

My problem is that, whe I test my application with JMeter using only one thread everything functions perfectly. However, when I run JMeter-Test with more than one thread the requests begin to hang. The problem seems to be some kind of timing problem, because the position where the application hangs up varies.

It seems to me, that Hibernate waits for a resource, which is not delivered. The original application using Stored Procedures has no problems with JMeter using several threads.

What am I doing wrong ? Any ideas ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing duplicate
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!