activity:
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>5.13</version>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>5.13</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.171</version>
</dependency>
I don't have a simple unit test to attach, it works fine, until i have heavy load with many threads.
my activity configuration:
<bean id="activitiDataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="org.h2.Driver"/>
<property name="url"
value="jdbc:h2:mem:active;DB_CLOSE_DELAY=-1"/>
<property name="username" value="sa"/>
<property name="password" value=""/>
</bean>
<bean id="activitiTransactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="activitiDataSource"/>
</bean>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration" depends-on="externalParsersLoader">
<property name="createDiagramOnDeploy" value="false" />
<property name="dataSource" ref="activitiDataSource"/>
<property name="transactionManager" ref="activitiTransactionManager"/>
<property name="databaseSchemaUpdate" value="true"/>
<property name="jobExecutorActivate" value="true"/>
<property name="history" value="none"/>
<property name="preBpmnParseHandlers">
<list>
….
</list>
</properties>
i don't need the parameters after the execution instance finish, any idea how to free it?