History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-900
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Alexander Maslov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Using appfuse:full-source on modular Struts project throws java.lang.OutOfMemoryError: Java heap space

Created: 19/Sep/07 02:53 AM   Updated: 09/Oct/07 12:27 AM
Component/s: Tools - AMP
Affects Version/s: 2.0 Final
Fix Version/s: 2.0.1

Environment:
Mac OS X 10.4.10
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)


 Description  « Hide
full-source fails on Web (Struts 2) module. Here is output for it:

[INFO] Building NEURE Modular Application - Web (Struts 2)
[INFO] task-segment: [appfuse:full-source]
[INFO] ----------------------------------------------------------------------------
[INFO] [appfuse:full-source]
[INFO] [AppFuse] Installing source from web-common module...
[INFO] [AppFuse] Installing source from struts module...
[INFO] [AppFuse] Source successfully exported, modifying pom.xml...
[INFO] [AppFuse] Removing maven-warpath-plugin...
[INFO] [AppFuse] Adding dependencies from web-common module...
[INFO] [AppFuse] Adding dependencies from struts module...
[INFO] [AppFuse] Removing maven-warpath-plugin...
[INFO] [AppFuse] Updated dependencies in pom.xml...
[INFO] [AppFuse] Renaming packages to 'my.packagename'...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45 seconds
[INFO] Finished at: Wed Sep 19 10:31:14 EEST 2007
[INFO] Final Memory: 6M/63M
[INFO] ------------------------------------------------------------------------

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 19/Sep/07 09:37 AM
Increasing the memory for Maven should fix this problem. Try setting your MAVEN_OPTS environment variable to:

-Xms128M -Xmx256M

I'll leave this issue open so we can add this to our documentation.

Alexander Maslov - 20/Sep/07 01:05 AM
yep, it helps.

Matt Raible - 09/Oct/07 12:27 AM
Fixed by adding documentation on how to fix OOM Error.