Out of Memory on Windows when org.jruby.Main.new or ScriptingContainer loads
rails many times
---------------------------------------------------------------------------------------------
Key: JRUBY-5041
URL: http://jira.codehaus.org/browse/JRUBY-5041
Project: JRuby
Issue Type: Bug
Components: Embedding, Windows
Affects Versions: JRuby 1.5.1, JRuby 1.4
Environment: Windows XP, Rails 2.3.5, Java 1.6
Reporter: Li Xiao
Priority: Blocker
Attachments: memory_leak_empty_rails_proj.zip
Java Version: 1.6.0_03
OS: Windows XP
JRuby: 1.5.2 (also 1.4)
Rails: 2.3.5
We have experienced out of memory exceptions when we run some of our tests on
Windows. We created this empty generated rails app (see attached. It has Rails:
2.3.5 inside vendor) to demonstrate what we are seeing. We just added tests and
a script(load_rails_script) to show the problems we are seeing. The script
loads rails and the test runs this script many times.
We only see this problem on Windows. We have run it using osx on a Mac and do
not see it run out of memory.
If you run test_main in the memory leak unit
tests(test/unit/memory_leak_test.rb) with jruby 1.5.2 on Windows you will get
an out of memory exception after about 30-40 iterations. However when we run
this test using 1.2 on Windows it will run through all of them without getting
an out of memory exception. We also tried using the scriplet container to run
the script on JRuby 1.5 but this has the same problem. An example of this is
the test test_run_by_scripting_container.
--
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