Large Memory Leak when under load or when reloading war through tomcat
----------------------------------------------------------------------

                 Key: JRUBY-5172
                 URL: http://jira.codehaus.org/browse/JRUBY-5172
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.3, JRuby 1.5.2, JRuby 1.5.1, JRuby 1.5, JRuby 
1.6
         Environment: OS Tested:
MacOS X 10.6
CentOS 5.5

Apache Tomcat 6.0.29

jruby: 1.5.2, 1.5.3, jruby-head


java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

            Reporter: Max M. Murphy
            Priority: Blocker


When running a war under tomcat, both after reload and under high load(tomcat 
or not) there is a memory leak:

SEVERE: The web application [/jruby-test] created a ThreadLocal with key of 
type [null] (value [com.kenai.jaffl.provider.stringi...@ab14733]) and a value 
of type [java.lang.ref.SoftReference] (value 
[java.lang.ref.softrefere...@7a628653]) but failed to remove it when the web 
application was stopped. This is very likely to create a memory leak.


To replicate this error I've included a small rails 3.0.1 app with a war 
created by warbler. I'm able to recreate this under load using `ab -c5 -n10 
#{app_url}". Looking through the dominator tree in MAT is pointing to RubyHash 
and also RubyClass implementations in Jruby.


OS Tested:
MacOS X 10.6
CentOS 5.5

Apache Tomcat 6.0.29

jruby: 1.5.2, 1.5.3, jruby-head

Java:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)

Gemfile contents:
source 'http://rubygems.org'

gem 'rails', '3.0.1'
gem 'activerecord-jdbcmysql-adapter'
gem 'warbler'


I've zipped up the test project I've setup, along with the tomcat logs, eclipse 
MAT hprof files, and a war of the app that I've been testing with. 

http://dl.dropbox.com/u/8509074/jruby-rails3.zip


-- 
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


Reply via email to