oink icon indicating copy to clipboard operation
oink copied to clipboard

How does Oink Deal with Threads?

Open schneems opened this issue 8 years ago • 1 comments

Sorry for opening an issue to ask a general question.

How does Oink deal with threaded webservers? For example if i'm running puma with 5 threads and each start serving a request A,B,C,D, & E. If Oink is measuring memory by wrapping the request for A and then in the middle B gets hit with a REALLY expensive endpoint, if you're taking process memory it might look like A was at fault. Does Oink handle that well? Does it use statistics to see what requests consistently use more memory?

Thanks for your work on this gem and in for working in the Ruby memory space.

schneems avatar Mar 03 '16 20:03 schneems

As far as I see Oink measure memory of process (based on PID), so it does not support measuring separate threads

stereobooster avatar Mar 01 '17 13:03 stereobooster