hi kiran,
On Sun, Apr 26, 2009 at 9:46 PM, Kiran Ayyagari <[email protected]> wrote:
>> how can i force the mvn build to work in my allocated RAM/swap? i've
>> though that the JAVA_OPTS setting would/should override any default
>> settings ...
>
> try setting the MAVEN_OPTS with the values set for 'JAVA_OPTS'
well, still not so lucky ...
xm create -c memory=768 maxmem=768 vcpus=2 auth_init.cfg
setenv JAVA_OPTS "-Xms256m -Xmx256m"
setenv MAVEN_OPTS "-Xms256m -Xmx256m"
./project/resources/superclean.sh
mvn install -Dintegration
...
[INFO] [surefire:test]
[INFO] Surefire report directory:
/usr/local/src/apacheds-trunk/shared/asn1/target/surefire-reports
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to
/usr/local/src/apacheds-trunk/shared/asn1/target/surefire-reports for
the individual test results.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Sun Apr 26 21:54:35 PDT 2009
[INFO] Final Memory: 49M/247M
[INFO]
------------------------------------------------------------------------
and,
xm create -c memory=768 maxmem=768 vcpus=2 auth_init.cfg
setenv JAVA_OPTS "-Xms512m -Xmx512m"
setenv MAVEN_OPTS "-Xms512m -Xmx512m"
./project/resources/superclean.sh
mvn install -Dintegration
...
[INFO] [surefire:test]
[INFO] Surefire report directory:
/usr/local/src/apacheds-trunk/shared/asn1/target/surefire-reports
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to
/usr/local/src/apacheds-trunk/shared/asn1/target/surefire-reports for
the individual test results.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Sun Apr 26 21:58:45 PDT 2009
[INFO] Final Memory: 49M/494M
[INFO]
------------------------------------------------------------------------
whereas,
xm create -c memory=2048 maxmem=2048 vcpus=2 auth_init.cfg
unsetenv JAVA_OPTS
unsetenv MAVEN_OPTS
./project/resources/superclean.sh
mvn install -Dintegration
gets quite a bit further (finished?) ...
...
Results :
Tests in error:
testDisableAnonymousBinds(org.apache.directory.server.operations.bind.MiscBindIT)
testEnableAnonymousBindsOnRootDSE(org.apache.directory.server.operations.bind.MiscBindIT)
testAnonymousBindsEnabledBaseSearch(org.apache.directory.server.operations.bind.MiscBindIT)
testAdminAccessBug(org.apache.directory.server.operations.bind.MiscBindIT)
testUserAuthOnMixedCaseSuffix(org.apache.directory.server.operations.bind.MiscBindIT)
testFailureWithUnsupportedControl(org.apache.directory.server.operations.bind.MiscBindIT)
Tests run: 249, Failures: 0, Errors: 6, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to
/usr/local/src/apacheds-trunk/apacheds/server-integ/target/surefire-reports
for the individual test results.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 8 minutes 21 seconds
[INFO] Finished at: Sun Apr 26 22:10:58 PDT 2009
[INFO] Final Memory: 113M/459M
[INFO]
------------------------------------------------------------------------
(a) are those test-failures considered FATAL to the build?
(b) is there something ELSE to set so as to get past the memory errors
for build in the DomU?
thanks.