The minimum heap space and configuration need to run more than 13 selections #10111
-
Hi I build and run jhipster and got OutOfMemory error, then changed to increase memory to 4Gb with follow command:
but still getting OutOfMemory when try to generate the code. Here is the partial exception
I'm using: branch main Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 1 reply
-
Hello @cwichoski , Thank you for getting in touch.
What do you mean about 13 selections? Can you share a printscreen? Thanks 😁 |
Beta Was this translation helpful? Give feedback.
-
Just used the same command than you: I managed to apply the 15 modules without any memory problem: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I was able to inspect the Heap Dump of OutOfMemory crash, and found there is an StringWriter with more than 1GB in a try to create the pom.xml file, but with many spaces inside, appears to be a problem with identation when I changed from 2 to 4. Here a print from GHex that show the content of the string inspected: and here the dominator tree:
With that there is something wrong with tech.jhipster.lite.module.infrastructure.secondary.javadependency.maven.MavenCommandHandler.applyIndentation(MavenCommandHandler.java:447) |
Beta Was this translation helpful? Give feedback.
-
In a try to debug the problem I created some output to get how pomContent increases on the source[1].
|
Beta Was this translation helpful? Give feedback.
-
confirmed and fixed by #10143 |
Beta Was this translation helpful? Give feedback.
confirmed and fixed by #10143