Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017040Openbravo ERPA. Platformpublic2011-05-06 11:052017-03-10 17:04
gorka_gil 
alostale 
highminoralways
closedout of date 
30
pi 
 
gorka_gil
Core
No
0017040: Install.source in 64 bit fails with -Xmx1024M in ANT_OPTS
The install sources in 64 bits needs more than 1GB in ANT_OPS because the the load.logoimages fails with a "java.lang.OutOfMemoryError: GC overhead limit exceeded" error:

   load.logoimages:

   load.logoimages:

   BUILD FAILED
   /srv/hudson/workspace/try-smoke-oracle-inc/build.xml:683: The following error occurred while executing this line:
   /srv/hudson/workspace/try-smoke-oracle-inc/build.xml:1094: The following error occurred while executing this line:
   /srv/hudson/workspace/try-smoke-oracle-inc/src/build.xml:128: org.openbravo.base.exception.OBException: java.lang.OutOfMemoryError: GC overhead limit exceeded


Workaround: set -Xmx1280M in ANT_OPTS.

This only affects 64 bits, in 32 bits -Xmx1024M in ANT_OPTS works fine.

* install.source in 64 bits of the current pi
image.loading should be either forked off to use build.maxmem or rewritten to just not use dal (ideally that as would speed up install.source by 30s also)
OB3-Reviewed
Issue History
2011-05-06 11:05gorka_gilNew Issue
2011-05-06 11:05gorka_gilAssigned To => shuehner
2011-05-06 11:05gorka_gilModules => Core
2011-05-16 10:06alostaleStatusnew => scheduled
2011-11-17 16:49shuehnerTag Attached: OB3-Reviewed
2012-02-20 11:13shuehnerAssigned Toshuehner => alostale
2012-03-28 17:28alostaleNote Added: 0046848
2012-03-28 17:28alostaleTypedefect => design defect
2012-03-29 11:19roklenardicNote Added: 0046866
2012-09-24 23:18AugustoMauchNote Added: 0052447
2012-09-24 23:18AugustoMauchPrioritynormal => high
2017-03-10 17:04gorka_gilReview Assigned To => gorka_gil
2017-03-10 17:04gorka_gilNote Added: 0094945
2017-03-10 17:04gorka_gilStatusscheduled => closed
2017-03-10 17:04gorka_gilResolutionopen => out of date

Notes
(0046848)
alostale   
2012-03-28 17:28   
Setting it as design defect because fixing this issue requires to review/redising the whole build process.
(0046866)
roklenardic   
2012-03-29 11:19   
It failed on a 32bit Ubuntu 12.04 for me as well with the following ANT setup:
ANT_OPTS=-Xmx1024M -XX:MaxPermSize=128M
(0052447)
AugustoMauch   
2012-09-24 23:18   
Effort: 3
Impact: mid
Plan: short
(0094945)
gorka_gil   
2017-03-10 17:04   
Most likely obsolete now as build.maxmemory is auto-configured (depending on 32/64 bit system) and since then no manual config of ANT_OPTS should be required to raise -XmX