Grails
  1. Grails
  2. GRAILS-8723

If both GRAILS_OPTS and JAVA_OPTS are set only GRAILS_OPTS should be used or GRAILS_OPTS should take precedence

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0 final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Jenkins: 1.450
      Grails: 2.0 Final
      Server RAM: 6GB

      Description

      Scenario:

      • We have a Jenkins CI running for our application
      • We have used the grails plugin for running the testcases
        • The CI build targets are
          • "clean -plain-output" "dbm-update -plain-output" "codenarc -plain-output" "test-app :spock -coverage -xml -nopost --verbose --stacktrace -plain-output"
      • We have initially used JAVA_OPTS and its value to be:
        • -server -XX:MaxPermSize=1024m -XX:+UseParNewGC -XX:MaxNewSize=256m -XX:NewSize=256m -Xms512m -Xmx2g -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:-UseGCOverheadLimit -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSIncrementalMode -XX:-UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent
      • Approx 3GB RAM is being used by other processes
      • When running cobertura reports the code-coverage plugin seems to invoke some java class using "java"(/usr/bin/java) command and it picks up JAVA_OPTS and fails with
        • [cobertura-report] java.io.IOException: Cannot run program "/usr/java/jdk1.6.0_11/jre/bin/java": java.io.IOException: error=12, Cannot allocate memory
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Java.fork(Java.java:798)
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214)
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
          [cobertura-report] 	at net.sourceforge.cobertura.ant.ReportTask.execute(ReportTask.java:112)
          [cobertura-report] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
          [cobertura-report] 	at sun.reflect.GeneratedMethodAccessor2581.invoke(Unknown Source)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
          [cobertura-report] 	at groovy.util.AntBuilder.performTask(AntBuilder.java:260)
          [cobertura-report] 	at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:220)
          [cobertura-report] 	at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:147)
          [cobertura-report] 	at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:170)
          [cobertura-report] 	at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64)
          [cobertura-report] 	at org.codehaus.gant.GantBuilder.invokeMethod(GantBuilder.java:99)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
          [cobertura-report] 	at _Events$_createCoverageReports_closure4.doCall(_Events.groovy:79)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054)
          [cobertura-report] 	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.Closure.call(Closure.java:410)
          [cobertura-report] 	at groovy.lang.Closure.call(Closure.java:423)
          [cobertura-report] 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1377)
          [cobertura-report] 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1349)
          [cobertura-report] 	at org.codehaus.groovy.runtime.dgm$142.invoke(Unknown Source)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
          [cobertura-report] 	at _Events.createCoverageReports(_Events.groovy:78)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
          [cobertura-report] 	at _Events$_run_closure3.doCall(_Events.groovy:58)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.Closure.call(Closure.java:410)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener.triggerEvent(GrailsBuildEventListener.java:186)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener.triggerEvent(GrailsBuildEventListener.java:171)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.support.GrailsBuildEventListener$triggerEvent.call(Unknown Source)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:55)
          [cobertura-report] 	at _GrailsEvents_groovy$_run_closure5.doCall(_GrailsEvents_groovy:59)
          [cobertura-report] 	at sun.reflect.GeneratedMethodAccessor222.invoke(Unknown Source)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
          [cobertura-report] 	at _GrailsEvents_groovy$_run_closure5.call(_GrailsEvents_groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054)
          [cobertura-report] 	at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1100)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:704)
          [cobertura-report] 	at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
          [cobertura-report] 	at groovy.lang.Script.invokeMethod(Script.java:78)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:407)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:346)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
          [cobertura-report] 	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
          [cobertura-report] 	at _GrailsTest_groovy$_run_closure1.doCall(_GrailsTest_groovy:218)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
          [cobertura-report] 	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
          [cobertura-report] 	at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
          [cobertura-report] 	at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1100)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1056)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:704)
          [cobertura-report] 	at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java:44)
          [cobertura-report] 	at groovy.lang.Script.invokeMethod(Script.java:78)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:407)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:346)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
          [cobertura-report] 	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
          [cobertura-report] 	at TestApp$_run_closure1.doCall(TestApp.groovy:82)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:149)
          [cobertura-report] 	at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:54)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
          [cobertura-report] 	at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
          [cobertura-report] 	at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
          [cobertura-report] 	at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
          [cobertura-report] 	at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
          [cobertura-report] 	at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
          [cobertura-report] 	at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
          [cobertura-report] 	at gant.Gant.withBuildListeners(Gant.groovy:427)
          [cobertura-report] 	at gant.Gant.this$2$withBuildListeners(Gant.groovy)
          [cobertura-report] 	at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
          [cobertura-report] 	at gant.Gant.dispatch(Gant.groovy:415)
          [cobertura-report] 	at gant.Gant.this$2$dispatch(Gant.groovy)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
          [cobertura-report] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1054)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
          [cobertura-report] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:706)
          [cobertura-report] 	at gant.Gant.invokeMethod(Gant.groovy)
          [cobertura-report] 	at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
          [cobertura-report] 	at gant.Gant.executeTargets(Gant.groovy:591)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
          [cobertura-report] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
          [cobertura-report] 	at gant.Gant.executeTargets(Gant.groovy:590)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:690)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(GrailsScriptRunner.java:494)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCaching(GrailsScriptRunner.java:429)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:380)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:359)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:225)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          [cobertura-report] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          [cobertura-report] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          [cobertura-report] 	at java.lang.reflect.Method.invoke(Method.java:597)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
          [cobertura-report] 	at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
          [cobertura-report] Caused by: java.io.IOException: Cannot run program "/usr/java/jdk1.6.0_11/jre/bin/java": java.io.IOException: error=12, Cannot allocate memory
          [cobertura-report] 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
          [cobertura-report] 	at java.lang.Runtime.exec(Runtime.java:593)
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
          [cobertura-report] 	at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)
          [cobertura-report] 	... 342 more
          [cobertura-report] Caused by: java.io.IOException: java.io.IOException: error=12, Cannot allocate memory
          [cobertura-report] 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
          [cobertura-report] 	at java.lang.ProcessImpl.start(ProcessImpl.java:65)
          [cobertura-report] 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
          [cobertura-report] 	... 347 more
      • The solution was to use different GRAILS_OPTS and JAVA_OPTS
        • GRAILS_OPTS
          • -server -XX:MaxPermSize=1024m -XX:+UseParNewGC -XX:MaxNewSize=256m -XX:NewSize=256m -Xms512m -Xmx2g -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:-UseGCOverheadLimit -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSIncrementalMode -XX:-UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent
        • JAVA_OPTS
          • -server -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:MaxNewSize=256m -XX:NewSize=256m -Xms512m -Xmx768m -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:-UseGCOverheadLimit -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSIncrementalMode -XX:-UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent

      After applying two variables in Jenkins CI (GRAILS_OPTS and JAVA_OPTS). I have had the following error:

      [project] $ /usr/local/grails/2.0.0/bin/grails -Dserver.port=7080 -Dgrails.env=ci clean -plain-output --non-interactive
      Java HotSpot(TM) 64-Bit Server VM warning: CMS bit map backing store failure
      Java HotSpot(TM) 64-Bit Server VM warning: Failed to allocate CMS Bit Map
      Error occurred during initialization of VM
      Could not create CMS collector
      Could not create the Java virtual machine.
      Build step 'Build With Grails' marked build as failure
      

      When using either of the variables the build was working.

        Activity

        Hide
        Raviteja added a comment - - edited

        As a workaround I moved all the common variables in to JAVA_OPTS.

        In https://github.com/grails/grails-core/blob/master/grails-resources/src/grails/home/bash/startGrails and https://github.com/grails/grails-core/blob/master/grails-resources/src/grails/home/bash/startGrails.bat

        If the line could have been:
        Actual:

        JAVA_OPTS="$GRAILS_OPTS $JAVA_OPTS $AGENT"
        

        Expected:

        JAVA_OPTS="$JAVA_OPTS $GRAILS_OPTS $AGENT"
        

        Usually the memory params of JAVA_OPTS(Xms and Xmx) would take precedence over the ones declared on GRAILS_OPTS as described in the blog post at: http://www.kromhouts.net/blog/grails/grails_opts-a-better-way-to-specify-jvm-options/

        I want to use low memory settings for JAVA_OPTS and higher ones for GRAILS_OPTS

        Show
        Raviteja added a comment - - edited As a workaround I moved all the common variables in to JAVA_OPTS. In https://github.com/grails/grails-core/blob/master/grails-resources/src/grails/home/bash/startGrails and https://github.com/grails/grails-core/blob/master/grails-resources/src/grails/home/bash/startGrails.bat If the line could have been: Actual: JAVA_OPTS= "$GRAILS_OPTS $JAVA_OPTS $AGENT" Expected: JAVA_OPTS= "$JAVA_OPTS $GRAILS_OPTS $AGENT" Usually the memory params of JAVA_OPTS(Xms and Xmx) would take precedence over the ones declared on GRAILS_OPTS as described in the blog post at: http://www.kromhouts.net/blog/grails/grails_opts-a-better-way-to-specify-jvm-options/ I want to use low memory settings for JAVA_OPTS and higher ones for GRAILS_OPTS

          People

          • Assignee:
            Unassigned
            Reporter:
            Raviteja
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development