Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build all profiles with Maven generate OutOfMemoryError #117

Closed
carlosrovira opened this issue Jan 31, 2020 · 2 comments
Closed

Build all profiles with Maven generate OutOfMemoryError #117

carlosrovira opened this issue Jan 31, 2020 · 2 comments
Assignees

Comments

@carlosrovira
Copy link
Contributor

Although something could be wrong with Maven, seems compiler memory consumption could be as well part of the problem since profiling indicates the compiler is taking and not releasing memory as maven goes compiling through all the process.

This is noticed when we run with all profiles (examples, tests,...)

[INFO] Apache Royale: Examples: CruxQuickStartBasic ....... FAILURE [01:23 min]
[INFO] Apache Royale: Examples: Crux: CruxGitHubCommitLogViewer SKIPPED
[INFO] Apache Royale: Examples: Jewel ..................... SKIPPED
[INFO] Apache Royale: Examples: TodoMVC ................... SKIPPED
[INFO] Apache Royale: Examples: Integrationtests .......... SKIPPED
[INFO] compc .............................................. SKIPPED
[INFO] compiler-asc ....................................... SKIPPED
[INFO] compiler-compc ..................................... SKIPPED
[INFO] compiler-compjsc ................................... SKIPPED
[INFO] compiler-mxmlc ..................................... SKIPPED
[INFO] compiler-mxmljsc ................................... SKIPPED
[INFO] compiler-optimizer ................................. SKIPPED
[INFO] compiler-swfdump ................................... SKIPPED
[INFO] mxmlc .............................................. SKIPPED
[INFO] Apache Royale: Distribution ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  24:07 min
[INFO] Finished at: 2020-01-31T07:59:35+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Java heap space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
@carlosrovira
Copy link
Contributor Author

Posible workarounds are:

1.- Try increasing memory (http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError)
2.- Build framework first and then examples

Anyway we should try to optimize memory consumption in Royale compiler, so memory is released in each use

@carlosrovira
Copy link
Contributor Author

Can we set MAVEN_OPTS=“-Xms512m -Xmx3072m” in CI Server?
locally I can successfully build with all maven targets with this memory setup

@greg-dove greg-dove self-assigned this Feb 10, 2020
@greg-dove greg-dove transferred this issue from apache/royale-asjs Feb 10, 2020
greg-dove added a commit that referenced this issue Feb 10, 2020
This was a long-standing bug related to accumulation of BindingDataBase instances over multiple compilations in a static collection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants