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
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%.