Dataminer error: java.lang.OutOfMemoryError: Java heap space

The BSAE 9.2 dataminer can show a Java OOM (Out of Memory) error on the DMTransactionMiner when processing a large SA (Server Automation) transaction from the lcrep table:

Exception in thread "Timer-1" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(
at java.lang.AbstractStringBuilder.expandCapacity(
at java.lang.AbstractStringBuilder.append(
at java.lang.StringBuffer.append(
at com.opsware.cmdb.dataminer.DMMultiMasterTruthImpl.applyValueAndScope(
at com.opsware.cmdb.dataminer.DMMultiMasterTruthImpl.collectClob(
at com.opsware.cmdb.dataminer.DMMultiMasterTruthImpl.collectData(
at com.opsware.cmdb.dataminer.DMMultiMasterTruthImpl.processTransaction(
at com.opsware.cmdb.dataminer.DMMultiMasterTruthImpl.processTransaction(
at com.opsware.cmdb.dataminer.DMTransactionMiner.loadTransactions(
at com.opsware.cmdb.dataminer.DMTransactionMiner.mineData(
at com.opsware.cmdb.dataminer.DataMiner$
at java.util.TimerThread.mainLoop(

This error can be seen on the DMTransactionMiner when processing a large SA transaction from the lcrep table.

To move past this problem is by lowering the number of transactions in an XML file. This is done using the DataFileChunkSize parameter in the dataminer. It defaults to 1500, and setting it lower might get past this problem. Determining a working value will probably be an iterative process. To change it, use ./ on the BSAE server:

./ –update –name <SA dataminer name> –settings DataFileChunkSize=<chunk size>

You can see the value it is currently set to with:

./ –listsettings –name <SA dataminer name>

If it’s not listed then it is the default value, 1500.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s