You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Dmitry (Jira)" <ji...@apache.org> on 2022/05/11 14:41:00 UTC
[jira] [Created] (GROOVY-10620) "Exception in thread "Memory manager" java.lang.OutOfMemoryError: Java heap space" on Groovy 4.0.0
Dmitry created GROOVY-10620:
-------------------------------
Summary: "Exception in thread "Memory manager" java.lang.OutOfMemoryError: Java heap space" on Groovy 4.0.0
Key: GROOVY-10620
URL: https://issues.apache.org/jira/browse/GROOVY-10620
Project: Groovy
Issue Type: Bug
Affects Versions: 4.0.0
Reporter: Dmitry
We use groovy version '2.5.15' and app work correct.
When I upgraded groovy for 3 version - app work correct too.
But when I upgrade groovy for 4.0.0 or 4.0.2, I build app get exception:
Exception in thread "Memory manager" java.lang.OutOfMemoryError: Java heap space
> Task :server:compileGroovy FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':server:compileGroovy'.
> Java heap space
Add memory doesn't help.
{code:java}
tasks.withType(GroovyCompile) {
configure(groovyOptions.forkOptions) {
memoryMaximumSize = '16g'
jvmArgs = ['-Xms4g', '-Xmx12g']
}
}{code}
Task compileGroovy:
{code:java}
compileGroovy {
dependsOn swagger
groovyClasspath += classpath.filter { it.absolutePath.contains('jaxb-api') }
} {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)