jobExecutor threads
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-29-2011 01:47 PM
I have another newbie question. If I have a timer that is set to go off at a certain time and I have 100 instances of a workflow, how many threads would be started to handle those jobs? Would it be 100? If so is there a way to throttle it so only 10 threads could be running at any 1 time? This means my job may not get started exactly when I wanted but it also means I do not have too many things running at the same time.
Thanks,
Richard
Thanks,
Richard
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2011 04:37 AM
There is a default size of the threadpool for job executors.
I also believe there is an undocumented setting for changing that size, but I can't directly find it.
But it's already asked on the forum in the past, so maybe the seach can help there.
I also believe there is an undocumented setting for changing that size, but I can't directly find it.
But it's already asked on the forum in the past, so maybe the seach can help there.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2011 10:33 AM
I do not think it is configurable from what I remember
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2011 11:45 AM
Open Source is awesome. Looking into the code, the max number of threads in the pool is 10 by default. So by default it is doing what I wanted.
I do think I could set the number of threads in my Spring configuration by creating a JobExecutor bean, set maxPoolSize on it. Then set the JobExecutor on the SpringProcessEngineConfiguration and then it could be anything I wanted it to be.
Thanks,
Richard

Thanks,
Richard
