Hi Josh,

This seems odd. My Maven opts are lower than yours, and I've never had an Out-of-memory exception when building Nakamura.

Anyone else have any ideas?

Thanks,
Nicolaas



On 30 Jul 2012, at 18:45, Joshua Swink wrote:

I tried this again with a clean environment - a fresh copy of the git repository and an empty maven repository, and had the same result. The environment:

$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_23
Java home: /home/yath/opt/jdk1.6.0_23/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.2.0-27-generic-pae" arch: "i386" Family: "unix"

This seems like a pretty standard environment, but I can't seem to build Nakamura.

Josh

[INFO] [bundle:install {execution: default-install}]
[INFO] Installing org/sakaiproject/nakamura/ org.sakaiproject.nakamura.basiclti/1.5.0-SNAPSHOT/ org.sakaiproject.nakamura.basiclti-1.5.0-SNAPSHOT.jar
[INFO] Writing OBR metadata
[INFO] ------------------------------------------------------------------------
[INFO] Building Sakai Nakamura :: Profile Impl 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/profile/impl/src/main/resources
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 5 source files to /home/yath/repos/nakamura/bundles/ profile/impl/target/classes [WARNING] /home/yath/repos/nakamura/bundles/profile/impl/src/main/ java/org/sakaiproject/nakamura/profile/servlet/ ProfileUpdateServlet.java:[33,36] [deprecation] org.apache.sling.api.servlets.HtmlResponse in org.apache.sling.api.servlets has been deprecated [WARNING] /home/yath/repos/nakamura/bundles/profile/impl/src/main/ java/org/sakaiproject/nakamura/profile/servlet/ ProfileUpdateServlet.java:[230,62] [deprecation] org.apache.sling.api.servlets.HtmlResponse in org.apache.sling.api.servlets has been deprecated [WARNING] /home/yath/repos/nakamura/bundles/profile/impl/src/main/ java/org/sakaiproject/nakamura/profile/servlet/ ProfileUpdateServlet.java:[169,8] [deprecation] org.apache.sling.api.servlets.HtmlResponse in org.apache.sling.api.servlets has been deprecated
[INFO] [scr:scr {execution: generate-scr-scrdescriptor}]
[INFO] Generating 2 MetaType Descriptors to /home/yath/repos/ nakamura/bundles/profile/impl/target/scr-plugin-generated/OSGI-INF/ metatype/metatype.xml [INFO] Writing abstract service descriptor /home/yath/repos/nakamura/ bundles/profile/impl/target/scr-plugin-generated/OSGI-INF/scr-plugin/ scrinfo.xml with 3 entries. [INFO] Generating 3 Service Component Descriptors to /home/yath/ repos/nakamura/bundles/profile/impl/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/profile/impl/src/test/resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 4 source files to /home/yath/repos/nakamura/bundles/ profile/impl/target/test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /home/yath/repos/nakamura/bundles/ profile/impl/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.sakaiproject.nakamura.profile.ProviderSettingsFactoryImplTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 sec
Running org.sakaiproject.nakamura.profile.ProfileServiceImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.255 sec
Running org.sakaiproject.nakamura.profile.servlet.ProfileServletTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

[INFO] [bundle:bundle {execution: default-bundle}]
ERROR:  'GC overhead limit exceeded'
FATAL ERROR:  'Could not compile stylesheet'
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] GC overhead limit exceeded
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java: 315) at java.util.jar.Manifest$FastInputStream.<init>(Manifest.java: 310)
    at java.util.jar.Manifest.read(Manifest.java:178)
at org .apache .felix .bundleplugin.BundlePlugin.mergeMavenManifest(BundlePlugin.java:526) at org .apache .felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java: 400) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java: 284) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java: 238) at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java: 229) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 490) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: 694) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: 535) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:348) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java: 60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 minutes 45 seconds
[INFO] Finished at: Mon Jul 30 10:33:54 PDT 2012
[INFO] Final Memory: 196M/227M
[INFO] ------------------------------------------------------------------------


On Fri, Jul 27, 2012 at 4:43 PM, Joshua Swink <[email protected]> wrote: 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

_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to