<?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: Activiti taking too much times on transitions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202944#M156074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Profiling will be complicated ( i'm running my job on a distant private tomcat server ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well , i've a workflow , of a service task , and inside , i call a second workflow for each message to treate ( a loop of 10 000 ), &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first messages are treated fastly , but the more messages i treat , the slower my execution become.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the only difference between the beginning of the workflow and the end , is the time of transitions &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2015-08-18 23:00:51.886 service1 end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2015-08-18 23:00:52.219 service2 start&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 08:18:45 GMT</pubDate>
    <dc:creator>mohta</dc:creator>
    <dc:date>2015-08-19T08:18:45Z</dc:date>
    <item>
      <title>Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202942#M156072</link>
      <description>Hello,I'm trying to run a process , that will execute a complex activiti process for 100 000 messages. i've a performance issue, activiti engine is taking a loooong time and causes performances issues! messages are treated on 1 second ( which mean that all messages can only be treated on 27 hours!!!</description>
      <pubDate>Sun, 16 Aug 2015 18:23:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202942#M156072</guid>
      <dc:creator>mohta</dc:creator>
      <dc:date>2015-08-16T18:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202943#M156073</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 would use any profiling tool (the simplest one is jvisualvm in the jdk)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 05:37:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202943#M156073</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-08-17T05:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202944#M156074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Profiling will be complicated ( i'm running my job on a distant private tomcat server ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well , i've a workflow , of a service task , and inside , i call a second workflow for each message to treate ( a loop of 10 000 ), &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first messages are treated fastly , but the more messages i treat , the slower my execution become.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And the only difference between the beginning of the workflow and the end , is the time of transitions &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2015-08-18 23:00:51.886 service1 end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2015-08-18 23:00:52.219 service2 start&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 08:18:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202944#M156074</guid>
      <dc:creator>mohta</dc:creator>
      <dc:date>2015-08-19T08:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202945#M156075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;but for the same services : at the begin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2015-08-18 17:51:43.308 service1 end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2015-08-18 17:51:43.333 service2 start&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 08:20:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202945#M156075</guid>
      <dc:creator>mohta</dc:creator>
      <dc:date>2015-08-19T08:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202946#M156076</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;SPAN&gt; could you provide a unit test for it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I guess you already have the code which show this behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 08:27:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202946#M156076</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-08-19T08:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202947#M156077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;not really , i don't have the code right now.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but to make short , i've a task which contains a loop that will run an activiti process ( with sub processes) ( by message) for 100 000 message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first , execution for each notification lasts 900 milliseconds, but the more i treat messages, the more my execution time lasts ( at last , i obtain a 5 seconds for each messsage)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if activiti keeps the complete execution context for all messages until i finish my loop and don't commit it until the main task is over, could it be the reason? and if it is , is there a way to commit the context , or flush the memory? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 13:47:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202947#M156077</guid>
      <dc:creator>mohta</dc:creator>
      <dc:date>2015-08-19T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202948#M156078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you don't show any code we can't really comment on this. It's definitely not normal to have 900 ms delays for these kind of actions. So it would be good if you can share more details so we can try to reproduce the issues you are seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:54:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202948#M156078</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-08-19T19:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202949#M156079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I coan't paste code ( i'm in work , and it's not allowed to post code on internet)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I discovered , that while executing my loop , activiti context is getting more and more heavier ( i&amp;nbsp; suppose that for iteration 1 it keeps the execution context of the iteration , and for iteration 2 , it keeps execution of 1 and 2 … until n : it keeps the execution of all iterations)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which make activiti memory heavier and heavier! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to loop diffrently ? using an activiti feature? that free memory for each iteration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried modeling the loop with an exclusive gateway , but i get the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose that activiti only flush memory on commit? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 11:39:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202949#M156079</guid>
      <dc:creator>mohta</dc:creator>
      <dc:date>2015-08-20T11:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti taking too much times on transitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202950#M156080</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;SPAN&gt;yes, you are right; is not ok to post proprietary code. (we all know that)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was expecting you to create a unit test simulating the same scenario you did at work (it's just a similar algorithm not a clone of the proprietary code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you understand that is not easy to debug an issue unless you reproduce it first of all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 20:57:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-taking-too-much-times-on-transitions/m-p/202950#M156080</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2015-08-20T20:57:48Z</dc:date>
    </item>
  </channel>
</rss>

