Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.5
-
None
-
Oracle jdk8u51 and jdk8u66
Description
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,
Attachments
Attachments
Issue Links
- 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