Exponential growth of Database Table ACT_GE_BYTEARRAY

Hi

Our database table ACT_GE_BYTEARRAY being exponentially growing due to following error

j

ava.lang.NullPointerException
	at org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupSchedulerCmd.reportMetrics(HistoryCleanupSchedulerCmd.java:117)
	at org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupSchedulerCmd.execute(HistoryCleanupSchedulerCmd.java:54)
	at org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupHandler$HistoryCleanupHandlerCmd.execute(HistoryCleanupHandler.java:77)
	at org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupHandler$HistoryCleanupHandlerCmd.execute(HistoryCleanupHandler.java:70)
	at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28)
	at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:110)
	at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:72)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)
	at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:70)
	at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
	at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
	at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
	at org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupHandler.execute(HistoryCleanupHandler.java:42)
	at org.camunda.bpm.engine.spring.SpringTransactionContext$3.afterCommit(SpringTransactionContext.java:89)
	at org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCommit(TransactionSynchronizationUtils.java:135)
	at org.springframework.transaction.support.TransactionSynchronizationUtils.triggerAfterCommit(TransactionSynchronizationUtils.java:123)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCommit(AbstractPlatformTransactionManager.java:936)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:782)
	at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:711)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:152)
	at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:70)
	at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70)
	at org.camunda.bpm.engine.impl.interceptor.CommandCounterInterceptor.execute(CommandCounterInterceptor.java:35)
	at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
	at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:57)
	at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.executeJob(ExecuteJobsRunnable.java:110)
	at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:71)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)

Process Engine configuration

  <bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
        <property name="processEngineName" value="default" />
        <property name="dataSource" ref="dataSource" />
        <property name="transactionManager" ref="transactionManager" />
        <property name="databaseSchemaUpdate" value="true" />
        <property name="jobExecutorActivate" value="false" />
        <property name="deploymentResources" value="classpath*:*.bpmn" />
        <property name="metricsEnabled" value="false"/>
        <property name="history" value="full"/>
        <property name="historyCleanupStrategy" value="removalTimeBased"/>
        <property name="historyCleanupMetricsEnabled" value="false"/>
        <property name="historyCleanupBatchWindowStartTime" value="20:00"/>
        <property name="historyCleanupBatchWindowEndTime" value="06:00"/>       
        <property name="historyCleanupDegreeOfParallelism" value="1"/>
        <property name="historyCleanupBatchSize" value="500"/>            
        <property name="historyRemovalTimeStrategy" value="end"/>
        <property name="javaSerializationFormatEnabled" value="false"></property>
        <property name="defaultSerializationFormat" value="application/json"></property>
       <property name="processEnginePlugins">
              <list>
                    <bean id="spinPlugin" class="org.camunda.spin.plugin.impl.SpinProcessEnginePlugin" />                      
              </list>
        </property>
        <!-- <property name="jobExecutor" ref="runtimeContainerJobExecutor" /> -->
  </bean>

Please can you help us to identify what is wrong with our settings ?

Thanks,
Eapen John