Java Heap Space: Out of memory error

575 views
Skip to first unread message

Anirban Ganguly

unread,
Oct 26, 2016, 2:31:09 AM10/26/16
to iDempiere
Hi,

I have generated iDempiere windows installer from my eclipse & running the installer in windows m/c. When I am trying to CSV upload in that application, I am getting java heap space error.
I gave gone through all the suggestions in the group but not able to resolve it. Can anyone please tell me how to solve it? 

Anirban Ganguly

unread,
Oct 26, 2016, 2:36:10 AM10/26/16
to iDempiere
The error log is as follows:

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
        at java.util.concurrent.FutureTask.report(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at org.compiere.model.MLookup.loadComplete(MLookup.java:165)
        at org.compiere.model.MLookup.loadData(MLookup.java:695)
        at org.compiere.model.MLookup.getData(MLookup.java:405)
        at org.compiere.model.MLookup.getData(MLookup.java:436)
        at org.compiere.model.Lookup.fillComboBox(Lookup.java:285)
        at org.compiere.model.MLookup.refresh(MLookup.java:673)
        at org.compiere.model.MLookup.refresh(MLookup.java:648)
        at org.adempiere.webui.editor.WTableDirEditor.actionRefresh(WTableDirEditor.java:502)
        at org.adempiere.webui.editor.WTableDirEditor.dynamicDisplay(WTableDirEditor.java:660)
        at org.adempiere.webui.adwindow.ADTabpanel.dynamicDisplay(ADTabpanel.java:742)
        at org.adempiere.webui.adwindow.ADTabpanel.dataStatusChanged(ADTabpanel.java:1249)
        at org.compiere.model.GridTab.fireDataStatusChanged(GridTab.java:2365)
        at org.compiere.model.GridTab.dataStatusChanged(GridTab.java:2333)
        at org.compiere.model.GridTable.fireDataStatusChanged(GridTable.java:3346)
        at org.compiere.model.GridTable.setValueAt(GridTable.java:1323)
        at org.compiere.model.GridTab.setValue(GridTab.java:2718)
caused by: java.lang.OutOfMemoryError: Java heap space
        at java.lang.StringCoding.decode(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at org.postgresql.core.Encoding.decode(Encoding.java:191)
        at org.postgresql.core.Encoding.decode(Encoding.java:203)
        at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getString(AbstractJdbc2ResultSet.java:1978)
        at com.mchange.v2.c3p0.impl.NewProxyResultSet.getString(NewProxyResultSet.java:3300)
        at org.compiere.model.MLookup$MLoader.doRun(MLookup.java:854)
        at org.adempiere.util.ContextRunnable.run(ContextRunnable.java:38)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Oct 26, 2016 11:35:13 AM Hazelcast instance is down!
11:35:15.649-----------> Node: [172.16.31.36]:5701 [idem_dev] No join method is enabled! Starting standalone. [117]
Oct 26, 2016 11:35:17 AM Hazelcast instance re-created!
11:35:20.329-----------> MJournalLine.processTaxRule: Tax Rule is not available in Journal Detail - 1 [117]
11:35:48.347===========> MJournalLine.set_Value: Invalid Data Type for Account_ID=1002694 [117]
11:35:57.021-----------> MJournalLine.processTaxRule: Tax Rule is not available in Journal Detail - 1 [117]
11:38:44.331===========> zkoss.handleError:1359: >>java.lang.OutOfMemoryError: Java heap space
 [117]


What is the relation between heap space and Hazelcast? Although I have done the changes to disable the Hazelcast by giving the group name as my db name & multicast enabled false. 

redhuan d. oon

unread,
Oct 26, 2016, 9:05:48 PM10/26/16
to iDempiere
What is your env and memory sizes? Which suggestions you went thru? Give links.

Anirban Ganguly

unread,
Oct 27, 2016, 2:55:39 AM10/27/16
to iDempiere
All the suggestions posted in this group related to heap space error.

My env. RAM is 8GB


On Wednesday, October 26, 2016 at 12:01:09 PM UTC+5:30, Anirban Ganguly wrote:

Anirban Ganguly

unread,
Oct 27, 2016, 2:56:54 AM10/27/16
to iDempiere

Anirban Ganguly

unread,
Oct 27, 2016, 2:58:17 AM10/27/16
to iDempiere
I have used the IDEMPIERE_JAVA_OPTIONS = -Xms1024M -Xmx2048M in idempiereEnv.properties file.


On Wednesday, October 26, 2016 at 12:01:09 PM UTC+5:30, Anirban Ganguly wrote:
Reply all
Reply to author
Forward
0 new messages