6 Replies Latest reply on Apr 13, 2011 6:38 AM by mmusgrov

    Problems building from source

    mmusgrov

      I checked out the RHQ source as per the instructions at http://www.rhq-project.org/display/RHQ/Building+RHQ and am getting Out of memory errors building the "RHQ Enterprise Core GUI 4.0.0-SNAPSHOT" module (modules/enterprise/gui/coregui):

       

      [INFO]    Scanning for additional dependencies: file:/home/mmusgrov/source/rhq/rhq/modules/enterprise/gui/coregui/target/generated-sources/gwt/org/rhq/enterprise/gui/coregui/client/gwt/MeasurementDataGWTServiceAsync.java

      [INFO]       Adding '30' new generated units

      [INFO]          Validating newly compiled units

      [INFO]             [WARN] Warnings in '/home/mmusgrov/source/rhq/rhq/modules/enterprise/gui/coregui/target/.generated/org/rhq/enterprise/gui/coregui/client/gwt/MeasurementDataGWTService_TypeSerializer.java'

      [INFO]                [WARN] Line 65: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection'

      [INFO]                [WARN] Line 70: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection'

      [INFO]                [WARN] Line 75: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection'

      [INFO]                [WARN] Line 80: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection'

      [INFO]    Compiling 6 permutations

      [INFO]       Compiling permutation 0...

      [INFO]       Process output

      [INFO]          Compiling permutation 1...

      [INFO]       [ERROR] OutOfMemoryError: Increase heap size or lower gwt.jjs.maxThreads

       

      I tried increasing the memory (to a gigabyte) in both in MAVEN_OPTS and JAVA_OPTS and lowering gwt.jjs.maxThreads without success:

       

      export MAVEN_OPTS="-Dgwt.jjs.maxThreads=1 -Xms256m -Xmx1024M"

      mvn -Penterprise,dev -DskipTests -Ddbsetup install

       

      Any ideas on what I could try next?