‎2015 Sep 08 11:56 AM
Hi,
I am trying to run one script, but getting error as below
cordev04: /usr/sap/D3M/interfaces/ArticleNumberGenerator/javascheduler/src : ./mdmeanjobscheduler.sh
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.sap.mdm.internal.valuetypes.TupleValueImpl.setFieldValue(TupleValueImpl.java:179)
at com.sap.mdm.internal.data.RecordLoader.convertToTupleValue(RecordLoader.java:454)
at com.sap.mdm.internal.data.RecordLoader.convertToTupleValue(RecordLoader.java:411)
at com.sap.mdm.internal.data.RecordLoader.getFieldData(RecordLoader.java:248)
at com.sap.mdm.internal.data.RecordImpl.loadData(RecordImpl.java:675)
at com.sap.mdm.internal.data.RecordsLoader.<init>(RecordsLoader.java:156)
at com.sap.mdm.internal.data.RecordsLoader.<init>(RecordsLoader.java:49)
at com.sap.mdm.internal.data.RecordResultSetHelper.convertFrom(RecordResultSetHelper.java:32)
at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.executeImpl(RetrieveLimitedRecordsCommand.java:190)
at com.sap.mdm.commands.AbstractCommandBase.execute(AbstractCommandBase.java:129)
at MDMUtil.fetchMDMRecords(MDMUtil.java:322)
at ArticleAndEANGenerator.main(ArticleAndEANGenerator.java:181)
Please advise how to increase Java Heap Size. It Development system for MDM, OS is Unix.
Please also advise how to check Java Heap Size.
Thanks & Regards,
Aman
‎2015 Sep 10 8:38 PM
Hi Aman
Could you refer the SAP KBA for the error message "Exception in thread "main" java.lang.OutOfMemoryError: Java heap space "
BR
SS
‎2015 Sep 11 4:23 PM
Hello Aman,
The OutOfMemory error was generated by the MDM application according to the error.
First I would like to recommend this note: 1289240 - How to deal with out of memory errors which explains the OOO errors in general. Maybe the issue is due to a memory leak, which will not be solved by simply increasing the heap size.
Anyway, the heap size can be increased in the Config tool -> click on the instance -> VM Parameters -> Memory tab -> set the initialHeapSize and the maxHeapSize to the desired (and same) value.
Best Regards,
Peter