<?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: Event handler - decrease fetch time in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147220#M102780</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;Signals and messages are handled directly, but depending on the way you use it, the handling of the message and signal can more or less time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you also pass an executionId, or or only the signal or message name?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How many process instances can be waiting for a signal in your case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, by default no index is created on the event name in the event subscription table (ACT_RU_EVENT_SUBSCR).&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>Thu, 28 Feb 2013 07:47:54 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-02-28T07:47:54Z</dc:date>
    <item>
      <title>Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147219#M102779</link>
      <description>Hi,Is there any way to tell Activiti to fetch events (signals and messages) more frequent? I have messages in Activiti which are triggered by application and Activiti needs certain amount of time (0.x seconds) to fetch them and execute. Can I configure that time with different value?I know it could</description>
      <pubDate>Wed, 27 Feb 2013 16:48:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147219#M102779</guid>
      <dc:creator>racadent</dc:creator>
      <dc:date>2013-02-27T16:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147220#M102780</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;Signals and messages are handled directly, but depending on the way you use it, the handling of the message and signal can more or less time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you also pass an executionId, or or only the signal or message name?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How many process instances can be waiting for a signal in your case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, by default no index is created on the event name in the event subscription table (ACT_RU_EVENT_SUBSCR).&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>Thu, 28 Feb 2013 07:47:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147220#M102780</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-02-28T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147221#M102781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have very simple diagram and I will try to describe, because I could not upload attachment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start message event-&amp;gt;Event gateway-&amp;gt;2 events (e1, e2)-&amp;gt; both events go to End event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I have a small test:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; for (int i = 0; i&amp;lt;5;i++) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.out.println("Message triggered: " + dformat.format(new Date().getTime()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; runtimeService.startProcessInstanceByMessage("r_msg"); //start with message name&lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.out.println("Message finished, now trigger the event e1: " + dformat.format(new Date().getTime()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; runtimeService.signalEventReceived("e1"); //trigger event e1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; System.out.println("Event finished: " + dformat.format(new Date().getTime()) + "\n");&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;Message triggered: 2013-02-28 12:42:06,223&lt;BR /&gt;Message finished, now trigger the event e1: 2013-02-28 12:42:06,824&lt;BR /&gt;Event finished: 2013-02-28 12:42:07,054&lt;BR /&gt;&lt;BR /&gt;Message triggered: 2013-02-28 12:42:07,054&lt;BR /&gt;Message finished, now trigger the event e1: 2013-02-28 12:42:07,254&lt;BR /&gt;Event finished: 2013-02-28 12:42:07,461&lt;BR /&gt;&lt;BR /&gt;Message triggered: 2013-02-28 12:42:07,461&lt;BR /&gt;Message finished, now trigger the event e1: 2013-02-28 12:42:07,672&lt;BR /&gt;Event finished: 2013-02-28 12:42:07,893&lt;BR /&gt;&lt;BR /&gt;Message triggered: 2013-02-28 12:42:07,893&lt;BR /&gt;Message finished, now trigger the event e1: 2013-02-28 12:42:08,107&lt;BR /&gt;Event finished: 2013-02-28 12:42:08,334&lt;BR /&gt;&lt;BR /&gt;Message triggered: 2013-02-28 12:42:08,334&lt;BR /&gt;Message finished, now trigger the event e1: 2013-02-28 12:42:08,541&lt;BR /&gt;Event finished: 2013-02-28 12:42:08,756&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see Activiti needs ~200ms to start message and another ~200ms to trigger the event!?. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are no more process instances that are waiting for the event and I have also created index on the EVENT_NAME_ column in ACT_RU_EVENT_SUBSCR. Mashine has quite good performanse (i7,6gb).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, when I query to the db directly and do select * from ACT_RU_EVENT_SUBSCR where EVENT_NAME_ = 'r_msg' I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;(1 row(s) affected)&lt;BR /&gt;&lt;BR /&gt; SQL Server Execution Times:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; CPU time = 0 ms,&amp;nbsp; elapsed time = 0 ms.&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 11:57:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147221#M102781</guid>
      <dc:creator>racadent</dc:creator>
      <dc:date>2013-02-28T11:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147222#M102782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Such micro benchmarks are hard to say anything about … it could very well be a problem with the connection pooling … The only way to really know where time is spent, is attaching a profiler.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 19:30:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147222#M102782</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-28T19:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147223#M102783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok and my question is: do I have the problem (with ~200ms response) or it is usual Activiti behavior? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suppose from your answer that I have a problem (db, hardware…).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 20:55:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147223#M102783</guid>
      <dc:creator>racadent</dc:creator>
      <dc:date>2013-02-28T20:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147224#M102784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, connection pool was missing. Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 10:32:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147224#M102784</guid>
      <dc:creator>racadent</dc:creator>
      <dc:date>2013-03-01T10:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Event handler - decrease fetch time</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147225#M102785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And that was just a random guess from me &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 18:22:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/event-handler-decrease-fetch-time/m-p/147225#M102785</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-01T18:22:30Z</dc:date>
    </item>
  </channel>
</rss>

