As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean id="myJobExecutor" class="org.activiti.engine.impl.jobexecutor.DefaultJobExecutor"> <property name="queueSize" value="30" /> <property name="corePoolSize" value="30" /> <property name="maxPoolSize" value="100" /> <property name="maxJobsPerAcquisition" value="30" /> <property name="waitTimeInMillis" value="1000" /> <property name="lockTimeInMillis" value="180000"/> </bean> <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> <property name="dataSource" ref="dataSource" /> <property name="transactionManager" ref="transactionManager" /> <property name="databaseSchemaUpdate" value="true" /> <property name="jobExecutorActivate" value="true" /> <property name="jobExecutor" ref="myJobExecutor" /> <property name="history" value="activity" /> <property name="idGenerator"> <bean class="org.activiti.engine.impl.persistence.StrongUuidGenerator" /> </property> <property name="idBlockSize" value="2000" /> </bean>
Hi,You can certainly optimize it by adding indexes. Oracle has tools to give you advise on that, right?Do you know for sure that the issue lies with the job executor?Are you starting synchronous or asynchronous processes? Does the job wait before the process is completed or do you have an async task in between?Best regards,
<bean id="myJobExecutor" class="org.activiti.engine.impl.jobexecutor.DefaultJobExecutor"> <property name="queueSize" value="30" /> <property name="corePoolSize" value="30" /> <property name="maxPoolSize" value="50" /> <property name="maxJobsPerAcquisition" value="3" /> <property name="waitTimeInMillis" value="1000" /> <property name="lockTimeInMillis" value="60000"/> </bean>