is it possible to, say, output the current consumption of CPU and memory in ruby 开发者_JAVA百科script?
i am trying to find memory leaks in my jruby script.
CPU usage keeps going up to 100% until it crashes.
Have you considered using ruby-prof?
the OS gem has an rss_bytes method, but that might not help with jruby.
精彩评论