Timer start event slacking when multiplice processes are running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2016 09:40 AM
the service task launches another independent asynchronous process that takes 2-3 days to finish.
Well, this works fine for the first 3-4 minutes.. after that, the timer startevent begins to launch itself approx 1-2 minute instead of every 10 seconds..
What is the reason behind this? How can I fix this?
My activiti monitoring:
Memory usage:
1602MB / 1022MB used
Heap:
685MB / 1023MB used
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2016 10:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2016 04:31 AM
Could you provide jUnit test for this issue?
https://forums.activiti.org/content/sticky-how-write-unit-test
Regards
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2016 04:40 AM
Also, as Martin says, a unit test would help a lot here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2016 10:25 AM
I'm using the latest actviti enterprise version
The process is really easy. TimerStartevent (15sec interval)=>servicetask(that launches another asynchronous process) => end event
I tried the following code in my servicetask, but without success:
<code>
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
processEngine.getProcessEngineConfiguration().setAsyncExecutorActivate(true);
processEngine.getProcessEngineConfiguration().setAsyncExecutorEnabled(true);
AsyncExecutor asyncExecutor = processEngine.getProcessEngineConfiguration().getAsyncExecutor();
asyncExecutor.setMaxAsyncJobsDuePerAcquisition(100);
asyncExecutor.setMaxTimerJobsPerAcquisition(1000);
asyncExecutor.setDefaultAsyncJobAcquireWaitTimeInMillis(2000);
asyncExecutor.setDefaultTimerJobAcquireWaitTimeInMillis(2000);
asyncExecutor.setRetryWaitTimeInMillis(2000);
processEngine.getProcessEngineConfiguration().setAsyncExecutor(asyncExecutor);
RuntimeService runtimeService = processEngine.getRuntimeService();
</code>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 03:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 06:53 AM
I posted my xml
Thank you for taking a look!
Info: MessagePoller should start an asynchronous TTSProcess every 15 seconds (this works for the first 2 asynchronous processes) After that, timer interval slacks to 1-2 minutes (the messagePoller process is taking quite a long time to finish)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 06:50 AM
Unfortunatly, the exact same problem is occuring..
See attachment.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2016 06:15 AM
but for me it nicely prints it out every 15 seconds:
Mon Mar 07 12:10:41 CET 2016 Hello world!
Mon Mar 07 12:10:56 CET 2016 Hello world!
Mon Mar 07 12:11:11 CET 2016 Hello world!
Mon Mar 07 12:11:26 CET 2016 Hello world!
Mon Mar 07 12:11:41 CET 2016 Hello world!
Mon Mar 07 12:11:56 CET 2016 Hello world!
Mon Mar 07 12:12:11 CET 2016 Hello world!
Mon Mar 07 12:12:26 CET 2016 Hello world!
I've attached my simple test (rename to .zip). Could you give it a spin on your env and post back what you see?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2016 10:50 AM
I cannot find in the activiti documentation how to increase the async jobs, at the moment it is set at 2.
So the timer starts 2 processes waits until the sleep on the servicetask is done, and then starts another 2.
What is the common way to increase async jobs in alfresco activiti enterprise?
I tried
<code>
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
processEngine.getProcessEngineConfiguration().setAsyncExecutorActivate(true);
processEngine.getProcessEngineConfiguration().setAsyncExecutorEnabled(true);
AsyncExecutor asyncExecutor = processEngine.getProcessEngineConfiguration().getAsyncExecutor();
asyncExecutor.setMaxAsyncJobsDuePerAcquisition(100);
asyncExecutor.setMaxTimerJobsPerAcquisition(1000);
asyncExecutor.setDefaultAsyncJobAcquireWaitTimeInMillis(2000);
asyncExecutor.setDefaultTimerJobAcquireWaitTimeInMillis(2000);
asyncExecutor.setRetryWaitTimeInMillis(2000);
processEngine.getProcessEngineConfiguration().setAsyncExecutor(asyncExecutor);
</code>
Not working…
