开发者

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

开发者 https://www.devze.com 2022-12-12 05:10 出处:网络
is it possible to, say, output the current consumption of CPU and memory in ruby 开发者_JAVA百科script?

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

精彩评论

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