You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by PGNet Dev <pg...@gmail.com> on 2009/04/27 06:31:01 UTC
java.lang.OutOfMemoryError building DS trunk in a RAM-limited Xen
DomU
as kerberos integration is an eventual goal, & i've read that DS
v1.5.4 is 'a bit broken' re: kerberos, and we should use trunk, i've
SVN co'd
.../apacheds/trunk-with-dependencies/, r768862
then,
setenv JAVA_HOME "/usr/lib64/jvm/java"
setenv JAVA_OPTS "-Xms256m -Xmx256m"
setenv MAVEN_HOME "/usr/share/java/maven"
setenv M2_HOME "/usr/share/java/maven"
setenv M2_REPO "/root/.m2/repository"
cd apacheds-trunk
./project/resources/superclean.sh
mvn install -Dintegration
fails/returns,
...
[INFO] Building Apache Directory ASN.1 Shared
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/usr/local/src/apacheds-trunk/shared/asn1/src/main/resources
[INFO] Copying 3 resources
[INFO] [compiler:compile]
[INFO] Compiling 83 source files to
/usr/local/src/apacheds-trunk/shared/asn1/target/classes
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/usr/local/src/apacheds-trunk/shared/asn1/src/test/resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile]
[INFO] Compiling 8 source files to
/usr/local/src/apacheds-trunk/shared/asn1/target/test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
/usr/local/src/apacheds-trunk/shared/asn1/target/surefire-reports
#
# An unexpected error has been detected by Java Runtime Environment:
#
# java.lang.OutOfMemoryError: requested 32 bytes for CHeapObj-new. Out
of swap space?
#
# Internal Error (allocation.inline.hpp:42), pid=3079, tid=140171978348880
# Error: CHeapObj-new
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode linux-amd64)
# An error report file with more information is saved as:
# /usr/local/src/apacheds-trunk/shared/asn1/hs_err_pid3079.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
/bin/sh: line 1: 3079 Aborted
/usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre/bin/java -Xmx1024m -jar
/tmp/surefirebooter2613443323535141723.jar
/tmp/surefire7995018895368884498tmp
/tmp/surefire3778658257861317186tmp
[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: 18 seconds
[INFO] Finished at: Sun Apr 26 21:15:25 PDT 2009
[INFO] Final Memory: 46M/81M
[INFO] ------------------------------------------------------------------------
given my DomU mem allocation,
@ Dom0
xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 766 2 r----- 2665.7
auth 12 1024 2 -b---- 121.9
& @ DomU "auth"
swapon -s
Filename Type Size Used Priority
/dev/mapper/vg0-lv_swap partition 524280 0 -1
i suspect (?) the problem is that the 'mvn' build is overriding my
JAVA_OPTS, note:
/usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre/bin/java -Xmx1024m -jar ...
^^^^
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 ...
thanks!
Re: java.lang.OutOfMemoryError building DS trunk in a RAM-limited Xen
DomU
Posted by PGNet Dev <pg...@gmail.com>.
hi kiran,
On Sun, Apr 26, 2009 at 9:46 PM, Kiran Ayyagari <ay...@gmail.com> 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.
Re: java.lang.OutOfMemoryError building DS trunk in a RAM-limited
Xen DomU
Posted by Kiran Ayyagari <ay...@gmail.com>.
> i suspect (?) the problem is that the 'mvn' build is overriding my
> JAVA_OPTS, note:
>
> /usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre/bin/java -Xmx1024m -jar ...
> ^^^^
>
> 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'
>
> thanks!
>
--
Kiran Ayyagari
Re: java.lang.OutOfMemoryError building DS trunk in a RAM-limited Xen
DomU
Posted by PGNet Dev <pg...@gmail.com>.
On Sun, Apr 26, 2009 at 9:31 PM, PGNet Dev <pg...@gmail.com> 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 ...
fwiw, as Dom0 _root_ (not available to all, eventual users, of
course), providing some additional resource to the DomU:
xm create -c memory=2048 maxmem=2048 vcpus=2 auth.cfg
then,
mvn install -Dintegration
gets past the aforementioned error, and the build/test are now
chugging away. so, looks like "not enuf RAM" is certainly the (a?)
culprit.
so, as above, _can_ i somehow override the -Xmx defaults for the build?
thanks.