cancel
Showing results for 
Search instead for 
Did you mean: 

Why processDefinitionCacheLimit not work

liyongda
Champ in-the-making
Champ in-the-making
I have set the value of processDefinitionCacheLimit in spring configuration file,.
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="dataSource" ref="workflowDataSource" />
      <property name="transactionManager" ref="workflowTxManager" />
      <property name="processDefinitionCacheLimit" value="1"/>
      <property name="databaseSchemaUpdate" value="true" />
      <property name="jobExecutorActivate" value="false" />
      <property name="typedEventListeners">
         <map>
            <entry
               key="TASK_CREATED,TASK_ASSIGNED,TASK_COMPLETED,ENTITY_CREATED,PROCESS_COMPLETED">
               <list>
                  <bean class="cn.szse.workflow.activiti.listener.GlobalEventListener" />
               </list>
            </entry>
         </map>
      </property>
      <property name="history" value="full" />
      <property name="idGenerator">
         <bean class="cn.szse.workflow.activiti.UuidGenerator" />
      </property>
   </bean>

I have deployed 100 processes, the cache size should be 1, but the cache size is incresing to 100. Is the default deployment cache implements LRU? thx
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Your xml is missing. Can you repost it in code tags?

The process definition cache is an LRU-eviction cache indeed.