From: Yehuda Katz Date: 2009-02-22T06:04:51+09:00 Subject: [ruby-core:22318] Re: wish list item: rconsole --000e0cd2e12c771c5b0463742079 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit What about http://rubyforge.org/projects/live-console/ ? I've used it more than once for exactly what you describe... -- Yehuda 2009/2/21 Roger Pack > After using jvm a bit, I'll admit it has a few things of which I am > jealous. > jconsole: attaches to a running process, shows you current GC stats > over time, and also current backtraces for running threads [updated > every few seconds]. > > http://redmine.ruby-lang.org/issues/show/977 > attempts the backtraces aspect of that, for 1.8.7 > Twould also be a nice feature for 1.9, if at all possible. > The GC stats are possible if you compile it with the right settings, > in 1.9 [though I've never used them], so that's there. > > Ability to "dump" all the memory of the JVM, and thus look through the > references for memory leaks [via references to unuseful objects]. > > There is a patch [2] that allows for the traversal of all the objects > in memory. Any chance a patch for that would be acceptable? [I'd be > happy to submit one]. > Thanks much. > -=r > [2] > http://timetobleed.com/plugging-ruby-memory-leaks-heapstack-dump-patches-to-help-take-out-the-trash/ > > -- Yehuda Katz Developer | Engine Yard (ph) 718.877.1325 --000e0cd2e12c771c5b0463742079 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit What about http://rubyforge.org/projects/live-console/ ?

I've used it more than once for exactly what you describe...

-- Yehuda

2009/2/21 Roger Pack <rogerdpack@gmail.com>
After using jvm a bit, I'll admit it has a few things of which I am jealous.
jconsole: attaches to a running process, shows you current GC stats
over time, and also current backtraces for running threads [updated
every few seconds].

http://redmine.ruby-lang.org/issues/show/977
attempts the backtraces aspect of that, for 1.8.7
Twould also be a nice feature for 1.9, if at all possible.
The GC stats are possible if you compile it with the right settings,
in 1.9 [though I've never used them], so that's there.

Ability to "dump" all the memory of the JVM, and thus look through the
references for memory leaks [via references to unuseful objects].

There is a patch [2] that allows for the traversal of all the objects
in memory.  Any chance a patch for that would be acceptable? [I'd be
happy to submit one].
Thanks much.
-=r
[2] http://timetobleed.com/plugging-ruby-memory-leaks-heapstack-dump-patches-to-help-take-out-the-trash/




--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
--000e0cd2e12c771c5b0463742079--