tags:

views:

79

answers:

1

is it possible to say output the current consumption of CPU and memory in ruby script ?rub

i am trying to find memory leaks in my jruby sript.

CPU usage keeps going up to 100% until it crashes.

A: 

Have you considered using ruby-prof?

anshul
doesn't install on jruby.
puqt
http://stackoverflow.com/questions/1445714/how-to-profile-jruby-code doesn't look promising. I have no idea if perftool.rb will do any better on jruby.
anshul