I want to be able to debug production systems with jdwp.
for this I want to add -Xdebug -Xrunjdwp:transport=dt_socket,address=11122,server=y,suspend=n to each java process I am starting.
Is there any overhead for that in case the port is not activated?
is my JVM going to run slower in this case?
I want to be able to debug production systems with jdwp. for this I
Share
-Xdebugmakes it’s about 5% slower (Java 5, I have no numbers for Java 6) in debug mode because it can’t do some kinds of optimizations.The socket itself doesn’t cost much; there is a thread created for it which hangs in
accept()(so that doesn’t cost anything until someone actually connects to the port).