<?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 Performance Problems in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3237#M1117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, there are no events or history or async job executor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2017 19:52:26 GMT</pubDate>
    <dc:creator>mprakash</dc:creator>
    <dc:date>2017-01-24T19:52:26Z</dc:date>
    <item>
      <title>Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3231#M1111</link>
      <description>I am trying a simple performance test of Activiti engine (5.20).I created a simple process with four tasks-one task sets up some variables, and invokes a subprocess. The subprocess has 3 tasks-one task creates a random variable, and a gateway uses the value to decide upon one of two branches, each o</description>
      <pubDate>Tue, 17 Jan 2017 22:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3231#M1111</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-01-17T22:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3232#M1112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;50 concurrent threads to start process instance on one server seems&amp;nbsp;a little high. What is your target process creation throughput? Starting a process instance is really fast in Activiti and is done in sub seconds! There are few nice write ups available at&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.jorambarrez.be/blog/2015/07/20/the-activiti-performance-showdown-2015/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.jorambarrez.be/blog/2015/07/20/the-activiti-performance-showdown-2015/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.jorambarrez.be/blog/2012/06/28/the-activiti-performance-showdown/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.jorambarrez.be/blog/2012/06/28/the-activiti-performance-showdown/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is your test just starting processes or is it taking a process all the way to its completion like it is done in the above mentioned blog posts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the performance depends on a lot of factors in your engine configuration such as&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Events enabled/disable&lt;/LI&gt;&lt;LI&gt;History enabled/disabled&lt;/LI&gt;&lt;LI&gt;Async Job Executor config&lt;/LI&gt;&lt;LI&gt;DB Pool config&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 01:51:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3232#M1112</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-01-18T01:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3233#M1113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand the difference between starting a process, and taking it to completion. Once started, it will go to completion.&lt;/P&gt;&lt;P&gt;BTW, I do not have events, history, or async job executor enabled, and the standard Type 4 driver for PSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scenario is a thread starts a process, and returns when the process is complete. There are a configurable number of threads running at a time. It worked fine for 10 threads, but started acting up at 50, and got worse as the number of threads increases. I am using JMeter to drive the tests, and a tiny Sparkjava front end that receives requests from JMeter, and in response, starts a process. The Activiti engine is running in a standalone jar with no additional components. The tasks are all pure Java (noscripting).&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="609" src="https://connect.hyland.com/legacyfs/online/alfresco/12147_TestProcess.png" width="753" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 16:21:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3233#M1113</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-01-18T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3234#M1114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting the diagram and that is all synchronous end-2-end. When you mentioned that you have four Tasks, I thought they are User Tasks! Hence I asked the question whether you are completing those tasks as part of your testing!&lt;/P&gt;&lt;P&gt;When you configure Activiti engine, are you configuring a&amp;nbsp;connection pool or using the default MyBatis connection pool settings. By default the max active connections is set to 10 (check here for more configuration options&amp;nbsp;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#databaseConfiguration" title="https://www.activiti.org/userguide/#databaseConfiguration" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;). DB connections could be the blocker here, I can only guess without seeing the actual&amp;nbsp;configuration!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 21:53:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3234#M1114</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-01-18T21:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3235#M1115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It may help us understand the possible block if you could provide us more details of the sort of errors you are receiving.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 16:08:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3235#M1115</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-19T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3236#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I upped the connection pool size to 50, but got no improvement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I am using JMeter to manage the load. JMeter makes HTTP requests to a Sparkjava HTTP listener, which creates a process instance, and returns when the process completes. Since the process does have any wait states, it returns (or should return) immediately. The errors I get are from Sparkjava server itself--500 Internal Server Error--even before it gets to creating a process instance. A simple Sparkjava app which just returns a fixed string for each request was also tested, and it scaled easily up to 10000 concurrent requests without issues. So this implies that the Activiti engine is consuming some resources that prevent Sparkjava from even responding.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also looked at Postgres, and that seems to be under no undue stress, and there are no locks being held in the DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3236#M1116</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-01-24T19:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3237#M1117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, there are no events or history or async job executor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:52:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3237#M1117</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-01-24T19:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3238#M1118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a stack trace of the error?&lt;/P&gt;&lt;P&gt;Also, how are you initializing the process instance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 19:56:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3238#M1118</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-24T19:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3239#M1119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no stack trace. The error is in the HTTP response (HTTP code 500).&lt;/P&gt;&lt;P&gt;The code to initialize the process instance is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;RepositoryService &lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt; = &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt;.getRepositoryService();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;RuntimeService &lt;SPAN class=""&gt;runtimeService&lt;/SPAN&gt; = &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt;.getRuntimeService();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;IdentityService &lt;SPAN class=""&gt;identityService&lt;/SPAN&gt; = &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt;.getIdentityService();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;TaskService &lt;SPAN class=""&gt;taskService&lt;/SPAN&gt; = &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt;.getTaskService();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt;.createDeployment().addClasspathResource(&lt;SPAN class=""&gt;processDefn&lt;/SPAN&gt;).deploy();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;Map&amp;lt;String, Object&amp;gt; &lt;SPAN class=""&gt;variableMap&lt;/SPAN&gt; = &lt;SPAN class=""&gt;new&lt;/SPAN&gt; HashMap&amp;lt;String, Object&amp;gt;();&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;variableMap&lt;/SPAN&gt;&lt;SPAN class=""&gt;.put(&lt;/SPAN&gt;"name"&lt;SPAN class=""&gt;, &lt;/SPAN&gt;"myMultiProcessRun"&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;variableMap&lt;SPAN class=""&gt;.put(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"nUsers"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;nUsers&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;variableMap&lt;/SPAN&gt;.put(&lt;SPAN class=""&gt;"logLevel"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;logLevel&lt;/SPAN&gt;.getName());&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;variableMap&lt;SPAN class=""&gt;.put(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"port"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;port&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;variableMap&lt;SPAN class=""&gt;.put(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"host"&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;host&lt;SPAN class=""&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;identityService&lt;/SPAN&gt;.setAuthenticatedUserId(&lt;SPAN class=""&gt;"kermit"&lt;/SPAN&gt;);&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;ProcessInstance &lt;SPAN class=""&gt;processInstance&lt;/SPAN&gt; = &lt;SPAN class=""&gt;runtimeService&lt;/SPAN&gt;.startProcessInstanceByKey(&lt;SPAN class=""&gt;processName&lt;/SPAN&gt;, &lt;SPAN class=""&gt;variableMap&lt;/SPAN&gt;);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 21:07:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3239#M1119</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-01-24T21:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3240#M1120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be something in the logs, especially since it is a 500 error, meaning, the server threw an error processing the request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 21:39:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3240#M1120</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-24T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3241#M1121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you are using an old version of spark java which had this issue of not printing stack trace. Can you upgrade to the latest version (2.5.4) and see if it makes any difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 23:01:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3241#M1121</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-01-24T23:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Performance Problems</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3242#M1122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using 2.5.4. i will add an internal server error handler and try to get a stack trace.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:23:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-performance-problems/m-p/3242#M1122</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-01-25T15:23:54Z</dc:date>
    </item>
  </channel>
</rss>

