Memory leak
-----------
Key: JRUBY-4764
URL: http://jira.codehaus.org/browse/JRUBY-4764
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.5.0.RC1
Environment: Mac OS 10.6.3
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
Reporter: Ken Britton
Assignee: Thomas E Enebo
Priority: Critical
Attachments: heap.png
Recently upgraded from version 1.3.1 to 1.5RC1. With the new version, running
scripts causes the heap size to grow (and the memory is not recovered).
ScriptingContainer defined thusly:
private static ScriptingContainer scriptEngine = new
ScriptingContainer(LocalContextScope.THREADSAFE,
LocalVariableBehavior.TRANSIENT);
scripts executed thusly:
EvalUnit compiled = compile(script, true, easyAPIDeclaration,
bllAPIDeclaration, dfsAPIDeclaration);
scriptEngine.setWriter(output);
scriptEngine.setErrorWriter(output);
BllAPI bllAPI = new BllAPI(taggedString, writer, output, production);
scriptEngine.put("@easyAPI", new EasyAPI(taggedString, writer, output,
production));
scriptEngine.put("@bllAPI", bllAPI);
scriptEngine.put("@dfsAPI", new DfsAPI(taggedString, writer, output,
production));
scriptEngine.put("@script", script);
scriptEngine.put("@program", program);
scriptEngine.put("@global", getGlobal());
compiled.run();
scriptEngine.clear();
See attached screenshot of heap dump (taken 1. after a large number of scripts
run 2. after a number of forced GC's)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email