<?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: Deadlock when having multiple executors in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227397#M180527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you been able to repeat on Activiti 6?&amp;nbsp; Just curious, since they have a different persistence model/approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2016 05:53:23 GMT</pubDate>
    <dc:creator>jwestra</dc:creator>
    <dc:date>2016-03-15T05:53:23Z</dc:date>
    <item>
      <title>Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227393#M180523</link>
      <description>I am writing a simple application to run 8 executors, each with a max thread pool of 2. I am using Activiti 5.19.0.1.The total number of process instances is 10k. It takes 10 to 16 minutes to complete the 10k processes on a mac pro with 16G. The database used is Postgres.All tasks in the process are</description>
      <pubDate>Thu, 10 Mar 2016 00:00:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227393#M180523</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-10T00:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227394#M180524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am sorry, I could not attach the doc file since only text files can be uploaded.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 00:01:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227394#M180524</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-10T00:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227395#M180525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Attached the pg_log that shows the deadlocks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 04:35:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227395#M180525</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-10T04:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227396#M180526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have fixed the issue I described above which occurs in highly concurrent environments. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that the engine context reuse delays commits on the database side which leads to deadlocks with a lot of commits waiting on the database side and not visible from the application side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the retry count should be unlimited or at least have a high threshold so that a job which has not executed due to unavailable lock, can have the chance to be retried till it is successfully executed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My fix does:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1- set by default this.contextReusePossible to false in the default constructor of the CommandConfig class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2- use select for update nowait on to update process instance lock time in the Execution.xml file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3- set the number of retries to 10 in the JobEntity class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am happy to contribute the attached patch. I am eager to have your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 20:58:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227396#M180526</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-14T20:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227397#M180527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you been able to repeat on Activiti 6?&amp;nbsp; Just curious, since they have a different persistence model/approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 05:53:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227397#M180527</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-03-15T05:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227398#M180528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@dan_: thanks for loking into this so detailed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So remarks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the contextReusePossible general switch to false is not generally applicable, as it breaks many other use case (service call in java delegates being one). I wonder, why was that needed in the context of this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The default retries to 10 is a configurable option anyway&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- But the sql change is interesting! … but it's probably postgres only, right? Why is this query better in the locking than the default one?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 11:01:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227398#M180528</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-15T11:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227399#M180529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not yet, but am going to try it soon.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 15:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227399#M180529</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-15T15:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227400#M180530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for taking the time to give feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the why contextReusePossible is set to false. Actually, when running the application (attached to initial post) which starts 10k instances, I systematically reach a point where roughly around 9500 instances terminates, but the engine blocks, the threads are waiting except one or two. I suspected a deadlock, which is usually the case. However, I was surprised to see bunches of commits and update processes set idle and active on the database side, not able proceed due to deadlocks (server status view). In contrast, on the application side only have one or two thread still in runnable state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I started looking into the code where the commits are done. In the CommandContextInterceptor class, the call to context.close() does the call to commit. However, I found out that if the contextReusePossible is true the commit is not done " if (!contextReused) { context.close();}". It seems to me that explains the bunch of idle commit process on the database side. I wanted the commits to be done as soon as the job is executed. Consequently, switching the contextReusePossible to false by default does the job for me and the my application managed to terminate all processes without blocking of deadlocks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What, I understand from you that setting contextReusePossible to false by default breaks service calls, you mean developer provided service tasks, right? If this is the case, I can conclude that if an applicaiton having no service tasks, it is will behave correctly right? Or you mean that it breaks Activiti services? In this case, I am eager to know your input on why my application succeeded to terminate all process instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Concerning retries. I am wondering whether a retried job gets executed the number of times it is retried. By getting executed, I mean the execute method of the developer DelegateExecution implementation is invoked with every job retry. If this is the case, it might create side-effects, right? Consider the case when a job sends an email, it will sent the email the number of times the job is getting retried right? I understand that, such a situation is tolerable in the case of transactional data change as the transaction is rolled back, nevertheless it requires careful job design to mitigate side-effects. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I read the code for ExecuteAsyncRunnable, I understand that a job is retried, if an OptimisticLockException is thrown or the developer provide implementation of the DelegateExecution throws and an exception itself right? But when I run my application, I find that the DelegateExecution is executed with every retrial. There is something I do not understand here. Can you please enlighten me on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For SQL change "select … for update nowait", it is available with all major databases: Oracle, SQL server, Postgres. In case a lock cannot be obtained immediately, it will raise an error and return right after without blocking which is very interesting to use in the case of Activiti job locking for execution (less resource consumption, more CPU cycles, more interestingly reduces deadlocks).&amp;nbsp; BTW, I noticed huge performance gains 2 to 3 times improvement, when I applied my changes and running the same application attached to the initial post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2016 19:21:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227400#M180530</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-15T19:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227401#M180531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I meant by performance improvement is process completed throughput per second.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 05:14:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227401#M180531</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-16T05:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227402#M180532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any feedback. partly based a feedback, I need to decide whether to use the engine or not. I am afraid, this is flaw in the design of how jobs are selected for execution (multiple threads can execute same job). Additionally, the mechanism of job retrials is not clear whether it may cause side effects. Say a job does increase the salary by 5%. If the job is retried, the salary would have been increased twice which is not acceptable from a business standpoint. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 03:11:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227402#M180532</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-20T03:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227403#M180533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tried Activiti 6 rc2, same issue is experienced. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Mar 2016 03:14:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227403#M180533</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-20T03:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227404#M180534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dan_,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this topic high on my todo list to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) verify the deadlocks in your original posts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) read more about what the select for update nowait impact is and how it reacts on different databases&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Say a job does increase the salary by 5%. If the job is retried, the salary would have been increased twice which is not acceptable from a business standpoint."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, if the increase in salary is done in a non-transactional way, then you are correct. it's always important in Activiti to make that logic transactional.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"I am afraid, this is flaw in the design of how jobs are selected for execution (multiple threads can execute same job). "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must disagree with this: multiple threads won't execute the same job. When being retried, yes. But the actual execution of logic _and_ continuation of the process instance: no.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll post back when we've looked closer into the 'nowait' semantics and trying to reproduce the deadlocking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for the great comments with loads of information!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:30:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227404#M180534</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-22T18:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227405#M180535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jerome,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for clarifying the job retrial mechanism. In light of what you have explained, do you think it make sense to set a limit on the number of job retrials. I think it should be unlimited. Since a job should be retried until success. For there came my confusion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:02:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227405#M180535</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-22T19:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227406#M180536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The idea of a finite number of retries, is to avoid that an already dead system doesn't get hammered forever … and that it goes into some sort of 'dead-letter-queue' thing (like for messaging) where an admin can manually retry the job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, you can set it to integer.Max if you like. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, to have full control, you can inject your own implementation of org.activiti.engine.impl.jobexecutor.FailedJobCommandFactory (which by default creates a RetryJobCmd that does the default behavior) and do whatever you please.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:16:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227406#M180536</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-22T19:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227407#M180537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dan_,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using 5.19.0.1, I'm seeing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception in thread "pool-1-thread-6" org.activiti.engine.ActivitiOptimisticLockingException: Could not lock process instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.persistence.entity.ExecutionEntityManager.updateProcessInstanceLockTime(ExecutionEntityManager.java:208)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.engine.impl.cmd.LockExclusiveJobCmd.execute(LockExclusiveJobCmd.java:55)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note sure if it's the same thing as you see … BUT when I run on 5.19.0.2 (and master, 5.20-SNAPSHOT), I'm not seeing any exception anymore, and all process instances get completed. Can you give that a go on your side too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 15:15:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227407#M180537</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-24T15:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227408#M180538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did test it on 5.19.0.2 for 10k, it work with no problem, but I observed significant throughput decrease. I will repeat the test for&amp;nbsp; 100k, 1M process and will reflect on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for taking this issue seriously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2016 20:52:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227408#M180538</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-25T20:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227409#M180539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks dan_ for the update. A throughput decrease is not wanted, but maybe it's a side effect of the fix we made. Can't recall the exact details, but there was definitely something broken - the queue size was not honored properly, which made that jobs were executed even if the queue was full. So, definitely have a go at playing with queue size parameters too, as it will have a serious impact in that release!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:52:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227409#M180539</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-29T07:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227410#M180540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram for the information,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In turn, I want to report that we were able to run successfully 1_000_000 process on 4 different nodes, it took 9 hours. The best of all, is that no deadlock were detected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the effort you expended on fixing issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 16:16:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227410#M180540</guid>
      <dc:creator>dan_</dc:creator>
      <dc:date>2016-03-29T16:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227411#M180541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;dan_, that is very awesome to hear! Thanks for posting back!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:54:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227411#M180541</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-04T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Deadlock when having multiple executors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227412#M180542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same issue using Activiti 5.20 deployed on Wildfly with SQL Server when enabling async continuations for some service tasks in my BP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: My set-up of Activiti might be a little bit atypical as I use both activiti-cdi and activiti-rest-api. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Changing contextReuseProssible value to false fixed it for me too. Could you explain what exactly the goal of this property is and what does the context reuse mean exactly for jobs executor?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rémi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2016 13:57:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deadlock-when-having-multiple-executors/m-p/227412#M180542</guid>
      <dc:creator>remibantos</dc:creator>
      <dc:date>2016-06-03T13:57:53Z</dc:date>
    </item>
  </channel>
</rss>

