Memory leak when -Djruby.thread.pool.enabled=true
-------------------------------------------------
Key: JRUBY-3573
URL: http://jira.codehaus.org/browse/JRUBY-3573
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.2
Environment: Linux notebook 2.6.29-4GB #1 SMP PREEMPT Sat Mar 28
01:54:40 CET 2009 i686 i686 i386 GNU/Linux
Reporter: Xuân Baldauf
Assignee: Thomas E Enebo
Run this program with command line "jruby -J-Djruby.thread.pool.enabled=true"
#!/usr/bin/jruby -J-Djruby.thread.pool.enabled=true
#
10000000.times do
sleep 0.001
Thread.new do
localvar = Array.new(10000)
sleep 0.1
end
end
You will observe the that the memory consumption will rise steadily.
Running the same program with "jruby -J-Djruby.thread.pool.enabled=false" will
result in a process where the memory consumption remains stable.
Depending on which data is referenced by the inner thread (e.g. in real life
applications), the memory leak can grow much faster. In real life applications,
this bug is quite hard to analyze.
Note that this bug is new in JRuby 1.2.0, it did not happen in JRuby 1.1.6.
--
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