[jboss-user] [jBPM] - Scalable use of Timer Events

Richard Evans do-not-reply at jboss.com
Wed Jun 13 08:52:33 EDT 2012


Richard Evans [https://community.jboss.org/people/r3vans] created the discussion

"Scalable use of Timer Events"

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

--------------------------------------------------------------
Hello there,

JBPM 5.1.0 running on Tomcat.

I have a number of processes that invoke async APIs and need to poll for results. I use Timer Events to trigger these checks.The processes all function correctly but I am having problems scaling.

I have a thread pool for starting the processes with kSession.startProcess(); all threads share a StatefulKnowledgeSession.
Processes kick off fine and execute any syncronous tasks. As soon as they hit the timer startProcess returns.
When the timer fires and the process resumes, every process instance seems to be executing in a single timer thread. 

This is heavily throttling throughput and I am ending up with hundreds of in-flight processes trikkling through very slowly.

Can I run multiple threads for the timer? I am very happy for a single process instance to be single-threaded but I really want separate processes to run in parallel both before and after the timer.

Any hints? Can I kick off multiple threads for the timer? Would it make a difference if I had multiple sessions?
Many thanks,
Richard
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120613/19f3250a/attachment-0001.html 


More information about the jboss-user mailing list