Alex Rivera | Logout

Sampling in visual vm

Asked 2009-12-02T08:08:20.240
9

Can anyone explain the science behind the sampling functionality of visualvm ?

I would have thought that collecting the amount of CPU spent on each particular method would require instrumenting the application to be profiled, but it doesnt look like visualvm is doing any kind of instrumenting, so I'm curious to know how it's done...

Edit
Report

1 Answer

8

It looks like the new VisualVM-Sampler plugin gather performance and memory data by periodically polling the monitored application for thread dumps or memory histograms. Check this article for more details.

answered 2009-12-02T08:32:42.700

Your Answer