-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4.5
-
Fix Version/s: 2.4.10
-
Component/s: groovy-runtime
-
Labels:None
-
Environment:Oracle jdk8u51 and jdk8u66
It seems classes generated by Eval() are never collected, thus causing PermGen or Metaspace to fill up and the JVM to hang/crash.
Reproduce by running the following code, after setting java option -XX:MaxMetaspaceSize=50m.
100000.times{ x -> assert 10 == Eval.x(2, 'x * 4 + 2;') }
After about 2700 calls to Eval the program will crash with OutOfMemoryError,
- is duplicated by
-
GROOVY-6136 Possibly memory leak in Eval with PathExpression
-
- Closed
-
- is related to
-
GROOVY-8189 OutOfMemoryError with groovy.use.classvalue=false
-
- Open
-
-
GROOVY-8199 Re-enable use of ClassValue for all JDKs
-
- Open
-
- relates to
-
GROOVY-7683 Memory leak when using Groovy as JSR-223 scripting language.
-
- Closed
-
- links to
(2 links to)