<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Instances hang with concurrency in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14435#M6344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to increase the number of jobs to be executed concurrently, you should change asyncExecutorCorePoolSize and asyncExecutorMaxPoolSize.&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/asyncexecutor/DefaultAsyncJobExecutor.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/asyncexecutor/DefaultAsyncJobExecutor.java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The setting of asyncExecutorCorePoolSize is the thread pool size to execute async job.&lt;BR /&gt;Because asyncExecutorCorePoolSize' initial value is 2 and your process sleep, the two process's scripts of your five process occupy the thread pool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jun 2017 12:49:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-10T12:49:03Z</dc:date>
    <item>
      <title>Instances hang with concurrency</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14434#M6343</link>
      <description>Hi,I attached a simple .BPMN with which I managed to reliably reproduce my issue.It only contains script tasks, though I originally noticed this behavior with Java service tasks.There are 5 script tasks witch are all marked as async. The first 4 do nothing and the fifth one sleeps for 2 minutes (in</description>
      <pubDate>Fri, 09 Jun 2017 20:02:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14434#M6343</guid>
      <dc:creator>malizor</dc:creator>
      <dc:date>2017-06-09T20:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Instances hang with concurrency</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14435#M6344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to increase the number of jobs to be executed concurrently, you should change asyncExecutorCorePoolSize and asyncExecutorMaxPoolSize.&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/asyncexecutor/DefaultAsyncJobExecutor.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/asyncexecutor/DefaultAsyncJobExecutor.java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The setting of asyncExecutorCorePoolSize is the thread pool size to execute async job.&lt;BR /&gt;Because asyncExecutorCorePoolSize' initial value is 2 and your process sleep, the two process's scripts of your five process occupy the thread pool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2017 12:49:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14435#M6344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-10T12:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Instances hang with concurrency</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14436#M6345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;As explained in my question, I already modified these settings. But your comment made me double check and I noticed the settings were not taken into account because of a missing line in my conf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that's all good. Now I'm going to fine-tune those parameters for my actual use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:02:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14436#M6345</guid>
      <dc:creator>malizor</dc:creator>
      <dc:date>2017-06-12T18:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Instances hang with concurrency</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14437#M6346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sorry that I don't know how to set asyncExecutorCorePoolSize in activiti-explorer.&lt;/P&gt;&lt;P&gt;I tested your process by customizing&amp;nbsp;ActivitiEngineConfiguration.class.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;@Bean&lt;/SPAN&gt;&lt;SPAN class=""&gt;(name=&lt;/SPAN&gt;"processEngineConfiguration"&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;public&lt;/SPAN&gt; ProcessEngineConfigurationImpl processEngineConfiguration() {&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;SpringProcessEngineConfiguration &lt;SPAN class=""&gt;processEngineConfiguration&lt;/SPAN&gt; = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; SpringProcessEngineConfiguration();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;processEngineConfiguration&lt;/SPAN&gt;.setAsyncExecutorCorePoolSize(100);&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;processEngineConfiguration&lt;/SPAN&gt;.setAsyncExecutorMaxPoolSize(2000);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:46:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/instances-hang-with-concurrency/m-p/14437#M6346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T19:46:48Z</dc:date>
    </item>
  </channel>
</rss>

