I'm trying to build Nakamura while following
https://confluence.sakaiproject.org/display/KERNDOC/4+Building but I keep
getting out of memory errors. When I build it with the tutorial's
recommended maven settings, MAVEN_OPTS="-Xmx256m -XX:PermSize=256m", I get
the following output after about 8 minutes.
I also tried increasing the memory available to the JVM with
MAVEN_OPTS="-Xms256m -Xmx2048m -XX:MaxPermSize=256m -XX:PermSize=256m
+XX:UseConcMarkSweepGC", but even with 2 GB of heap I get
"java.lang.OutOfMemoryError: Java heap space". Anyone have a solution to
this?
Josh
[INFO]
------------------------------------------------------------------------
[INFO] Building Sakai Nakamura :: Upgrade Bundle
[INFO] task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: enforce-maven}]
[INFO] [remote-resources:process {execution: copy common files}]
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/yath/repos/nakamura/bundles/upgrade/src/main/resources
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 9 source files to
/home/yath/repos/nakamura/bundles/upgrade/target/classes
[INFO] [scr:scr {execution: generate-scr-scrdescriptor}]
[INFO] Writing abstract service descriptor
/home/yath/repos/nakamura/bundles/upgrade/target/scr-plugin-generated/OSGI-INF/scr-plugin/scrinfo.xml
with 9 entries.
[INFO] Generating 9 Service Component Descriptors to
/home/yath/repos/nakamura/bundles/upgrade/target/scr-plugin-generated/OSGI-INF/serviceComponents.xml
[debug] execute contextualize
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/home/yath/repos/nakamura/bundles/upgrade/src/test/resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/home/yath/repos/nakamura/bundles/upgrade/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [bundle:bundle {execution: default-bundle}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] GC overhead limit exceeded
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.lang.String.substring(String.java:1939)
at aQute.lib.osgi.Jar.putResource(Jar.java:107)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:53)
at aQute.lib.osgi.ZipResource.build(ZipResource.java:33)
at aQute.lib.osgi.Jar.<init>(Jar.java:36)
at
org.apache.felix.bundleplugin.BundlePlugin.getClasspath(BundlePlugin.java:742)
_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev