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&...]