Kasper Johansen created JRUBY-6625: -------------------------------------- Summary: Memprof/Bleakhouse-like extension for JRuby Key: JRUBY-6625 URL: https://jira.codehaus.org/browse/JRUBY-6625 Project: JRuby Issue Type: Wish Components: Extensions Reporter: Kasper Johansen Priority: Minor
A memprof-like feature for JRuby to debug memory leaks, by telling the amount of live objects grouped by file and line-number from where they were created in the code. Could be enabled by giving an argument like "--memory-profiling" to JRuby, since it would properly eat some performance. In memprof-mode JRuby saves the file and line number from allocated objects in a hash with a counter. Possibly with a hook into "Class.new" or something on the Java-side? When an object is freed the counter counts down (could possibly be hacked by using weak references if this is not possible otherwise?). When a static method like "JRuby::Memprof.stats" is called or the application ends, the contents of this hash should be printed. It should then tell the amount of live objects from which file and line-number to debug memory leaks in the Ruby-side of the source code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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