views:

168

answers:

2

Hi

I'm running IBM's jvm (jdk 5.0) with the options -XrunHprof:format=b

I'm aware that instrumenting jvm with hprof involves a performance penality. I would like to quantify that penality. I know that one way to do this is to take off the hprof profiling and run the application, and compare the application's cpu utilization in both cases. But this option is not available to me

I have a running application that is instrumented with hprof. I need to find out what % of cpu is being consumed by the hprof profiler itself.

+1  A: 

I don't have any hard numbers, but I've always considered running under hprof to be an order of magnitude (or two) slower than without. It's very much dependent on what you track: larger stack frames, for example will increase the overhead.

But regardless, it's definitely not something you'd want running in anything other than a closely controlled test environment.

kdgregory
+1  A: 

You don't actually say you have a performance problem that you're trying to solve by profiling. But on the off chance that you do, you might try this.

Mike Dunlavey