<?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 Activiti hanging waiting for next Id. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37107#M15599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are seeing a problem with the Activiti engine hanging in an apparent deadlock.&lt;/P&gt;&lt;P&gt;We have deployed Activiti 5.22.0 in Tomcat, and using C3P0 connection pool. If we set Tomcat thread pool size to be equal to or greater than the connection pool size, the entire system hangs, apparently waiting to get the next id from the DB. Below is the relevant section of the thread dump. Each thread seems to be stuck in the same place.&lt;/P&gt;&lt;P&gt;Any ideas? Should the thread pool always be smaller than the connection pool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 13px;"&gt;&lt;BR /&gt;"http-nio-8080-exec-20" #45 daemon prio=5 os_prio=0 tid=0x00007f2b7c020800 nid=0x2694 waiting for monitor entry [0x00007f2bee15c000]&lt;BR /&gt; java.lang.Thread.State: BLOCKED (on object monitor)&lt;BR /&gt; at org.activiti.engine.impl.db.DbIdGenerator.getNextId(DbIdGenerator.java:35)&lt;BR /&gt; - waiting to lock &amp;lt;0x00000006c1f952d8&amp;gt; (a org.activiti.engine.impl.db.DbIdGenerator)&lt;BR /&gt; at org.activiti.engine.impl.db.DbSqlSession.insert(DbSqlSession.java:151)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ExecutionEntity.insert(ExecutionEntity.java:1270)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity.newProcessInstance(ProcessDefinitionEntity.java:146)&lt;BR /&gt; at org.activiti.engine.impl.pvm.process.ProcessDefinitionImpl.createProcessInstanceForInitial(ProcessDefinitionImpl.java:63)&lt;BR /&gt; at org.activiti.engine.impl.pvm.process.ProcessDefinitionImpl.createProcessInstance(ProcessDefinitionImpl.java:53)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity.createProcessInstance(ProcessDefinitionEntity.java:87)&lt;BR /&gt; at org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity.createProcessInstance(ProcessDefinitionEntity.java:135)&lt;BR /&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:99)&lt;BR /&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)&lt;BR /&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)&lt;BR /&gt; at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)&lt;BR /&gt; at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:86)&lt;BR /&gt; at org.activiti.rest.service.api.runtime.process.ProcessInstanceCollectionResource.createProcessInstance(ProcessInstanceCollectionResource.java:166)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 19:01:31 GMT</pubDate>
    <dc:creator>mprakash</dc:creator>
    <dc:date>2017-05-18T19:01:31Z</dc:date>
    <item>
      <title>Activiti hanging waiting for next Id.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37107#M15599</link>
      <description>We are seeing a problem with the Activiti engine hanging in an apparent deadlock.We have deployed Activiti 5.22.0 in Tomcat, and using C3P0 connection pool. If we set Tomcat thread pool size to be equal to or greater than the connection pool size, the entire system hangs, apparently waiting to get t</description>
      <pubDate>Thu, 18 May 2017 19:01:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37107#M15599</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-05-18T19:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti hanging waiting for next Id.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37108#M15600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the strongUUid generator. It does not utilize the database, is more performant and is a much better option for production environments.&lt;/P&gt;&lt;P&gt;&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>Fri, 19 May 2017 15:11:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37108#M15600</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-19T15:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti hanging waiting for next Id.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37109#M15601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the pointer. Will give it a try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:Mayank.@mayank" rel="nofollow noopener noreferrer"&gt;Mayank&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 18:52:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-hanging-waiting-for-next-id/m-p/37109#M15601</guid>
      <dc:creator>mprakash</dc:creator>
      <dc:date>2017-05-19T18:52:22Z</dc:date>
    </item>
  </channel>
</rss>

