开发者

possible to output current CPU and MEM usage via ruby script ? i am trying to find memory leaks

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜