-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Bug: OutOfMemory when using Maven and identation size 4 #10129
Comments
I found a solution and going to provide a pull request |
If you add many modules and change the indentation size to 4, when newer dependencies are added to pom.xml the current indentation algorithm causes a loop that increase memory exponentially by each dependency, to avoid this we changed to use a XML formatter. fix jhipster#10129
I pushed a solution here [1] but I'm with difficult to understand what jacoco needs me to test more, as it's my first time using a project with jacoco and with 100% of code coverage needed, anyone have a clue what more I need to test?
|
@cwichoski : After running |
If you add many modules and change the indentation size to 4, when newer dependencies are added to pom.xml the current indentation algorithm causes a loop that increase memory exponentially by each dependency, to avoid this we changed to use a XML formatter. fix jhipster#10129
I'm adding a bounty on this important ticket |
Discussed in #10111
Originally posted by cwichoski June 19, 2024
Hi
I build and run jhipster and got OutOfMemory error, then changed to increase memory to 4Gb with follow command:
jhipster-lite$ java -Xmx4096m -Xms4096m -jar target/*.jar
but still getting OutOfMemory when try to generate the code.
Here is the partial exception
I'm using:
branch main
JDK 21.0.3-tem
maven 3.9.7
nodejs 18.16.0
Any idea?
The text was updated successfully, but these errors were encountered: