Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020173Openbravo ERP01. General setuppublic2012-03-31 21:122016-07-26 12:36
aplattsmier 
gorka_gil 
highmajoralways
closedduplicate 
30Ubuntu 2.6.32-40 (10.04 LTS)
3.0MP8.1 
 
Mozilla Firefox
Core
No
0020173: Build in 64bit environment generates "Error occurred during initalizaiton of VM" and "Too small inital heap" at sqlc
This error occurs when trying to build install.source without modification.
After setting the CATALINA_OPTS, ANT_OPTS, JAVA_OPTS all with larger memory allocation -Xms2048m -Xmx2048m (and other various combinations)
Ex. -Xms1024m -Xmx4096m and also setting the build.xml to build.maximummemory to 1284, 2048 and 4096. All are unable to clear the error.
Direction on setting JAVA_HOME, CATALINA_HOME, ANT_HOME, CATALINA_BASE etc...have all yielded no successful compile results.

Very similar to issue 0010771 Steps in this particular issue were followed and did not correct the error.

ANT, JAVA, POSTGRES, and TOMCAT6 were all installed from respective sources and function normally.

Machine is a physical 64x Ubuntu with 4G of ram. Was able to successfully compile with same parameters by converting physical machine to virtual (VMWare machine) and only 1.5G of allocated ram, on the same hardware.
Install indicated stack.
ant setup
/setup_properties-linux-64x.bin
ant install.source
Correct memory usage
No tags attached.
duplicate of feature request 0022559 closed shuehner SqlC does execute all queries at compile time, which is not required. 
Issue History
2012-03-31 21:12aplattsmierNew Issue
2012-03-31 21:12aplattsmierAssigned To => vmromanos
2012-03-31 21:12aplattsmierWeb browser => Mozilla Firefox
2012-03-31 21:12aplattsmierModules => Core
2012-04-11 11:29vmromanosAssigned Tovmromanos => gorka_gil
2012-04-11 12:24gorka_gilNote Added: 0047474
2012-04-11 12:24gorka_gilStatusnew => feedback
2012-12-13 11:09shuehnerRelationship addedrelated to 0022559
2016-07-26 12:36shuehnerRelationship replacedduplicate of 0022559
2016-07-26 12:36shuehnerNote Added: 0088665
2016-07-26 12:36shuehnerStatusfeedback => closed
2016-07-26 12:36shuehnerResolutionopen => duplicate

Notes
(0047474)
gorka_gil   
2012-04-11 12:24   

These values should fit:

ANT_OPTS="-Xmx1280M -XX:MaxPermSize=128M"

CATALINA_OPTS="-server -Djava.awt.headless=true -Xms384M -Xmx1536M -XX:MaxPermSize=256M"

Note: Take into account that the M after the memory is in uppercase.

The best way to check if ant or tomcat are taken the new values are with this command : "ps aux | grep java" .

You can get more details here:
http://wiki.openbravo.com/wiki/Installation/Custom/Apache_Tomcat [^]
http://wiki.openbravo.com/wiki/Installation/Custom/Apache_Ant [^]
(0088665)
shuehner   
2016-07-26 12:36   
Issue 22559 should resolve all 'huge memory use in SqlC' issues.