

Troubleshooting: Store publish fails due to small heap size
After installing the feature pack and enabling features, you attempt to publish a store, but the operation fails with an OutofMemory error that states that the heap size is too small.
Problem
When you attempt to publish a store,
you receive an error similar to the following example:
[3/10/13 18:44:22:729 PDT] 00000103 DataImporter E org.apache.solr.common.SolrException log Full Import failed:org.apache.solr.handler.dataimport.DataImportHandlerException: java.lang.OutOfMemoryError: Java heap space at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:669) at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:268) at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:187) at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:359) at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:427) at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:408) Caused by: java.lang.OutOfMemoryError: Java heap space at oracle.jdbc.driver.PhysicalConnection.getByteBuffer(PhysicalConnection.java:6991) at oracle.jdbc.driver.OracleStatement.prepareAccessors(OracleStatement.java:895)
Solution
To increase the heap size:
- Start the WebSphere Commerce test server on WebSphere Commerce Developer.
- Right-click the Test Server, and select
- In the window that opens, click
- Click server1.
- On the Configuration panel, in the Server infrastructure section, click Process definition.
- In the Additional Properties section, click java virtual machine.
- Change the Maximum heap size to 1024M.