How large is the -Xdebug flag overhead?

前端 未结 3 510
迷失自我
迷失自我 2021-02-06 03:14

I wonder how large the performance overhead that the -Xdebug flag introduces?

It\'s very convenient to debug production applications, but I guess it is expensive to leav

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-06 04:11

    Under Java 6 I would say the cost is about 15% to performance, Under Java 5.0 it was about 40%. This may be fine for you.

    Another way to see what is going on in production is to use JMX/JConsole. This takes some work and has a relatively small over head. I guess at 2%.

提交回复
热议问题