Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.7, 2.1.3
-
None
-
None
-
JDK 1.6, JDK 1.7 with JVM Option: -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+TraceClassUnloading -XX:+TraceClassLoading
Description
Possibly PermGen memory leak in eval.
It loads Script class every execution of eval but never unloads and triggers "java.lang.OutOfMemoryError: PermGen space" error.
I performed GC manually by JVisualVM among the time but no effect on PermGen space (works well on Heap).
Here are the ClassLoading/Unloading trace log:
...
[Loaded sun.reflect.GeneratedMethodAccessor24 from __JVM_DefineClass__]
[Loaded sun.reflect.GeneratedMethodAccessor25 from __JVM_DefineClass__]
[Loaded Script1 from file:/groovy/shell]
[Loaded Script1 from file:/groovy/shell]
[Loaded Script1 from file:/groovy/shell]
[Loaded Script1 from file:/groovy/shell]
[Loaded sun.reflect.GeneratedMethodAccessor26 from __JVM_DefineClass__]
[Loaded Script1 from file:/groovy/shell]
[Loaded Script1 from file:/groovy/shell]
[Loaded Script1 from file:/groovy/shell]
[Loaded Script1 from file:/groovy/shell]
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-7646 Classes generated by Eval() never collected from Permgen/Metaspace
- Closed