directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PGNet Dev <pgnet.dev+apach...@gmail.com>
Subject java.lang.OutOfMemoryError building DS trunk in a RAM-limited Xen DomU
Date Mon, 27 Apr 2009 04:31:01 GMT
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!

Mime
View raw message