[jboss-user] [jBPM] - Slow Performance in MultiThread

Claudio Heiman do-not-reply at jboss.com
Thu Apr 15 17:31:39 EDT 2010

Claudio Heiman [http://community.jboss.org/people/claudioh77] created the discussion

"Slow Performance in MultiThread"

To view the discussion, visit: http://community.jboss.org/message/537843#537843


I use jBPM 3 in standalone mode

Each client creates a JbpmContext executes several BPM and closes JbpmContext.
The first implementation of BPM is slower than subsequent executions, since this creates the SessionFactory for Hibernate, the others are fast.
If 2 or more clients simultaneously run every first execution of a bpm by a thread becomes very slow. Why ?
It seems that the piece of code is slow when I call JbpmContext.newProcessInstace (bpm).

How can I fix? The Hibernate SessionFactory can be singleton?



Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100415/9dfe1862/attachment.html 

More information about the jboss-user mailing list