F
F
ftyar2016-02-09 16:21:32
Java
ftyar, 2016-02-09 16:21:32

What overhead from JDWP on Oracle Java 8?

Hello! If the application starts with parameters

-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

then how strong can the performance degradation be? It is easy to google information on old versions of jvm, where it was said that the overhead can be very significant, but nothing is known about the new ones, except for indirect mentions on stackoverflow, which says that in new versions, debugging is optimized.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
ftyar, 2016-02-16
@ftyar

I found out that the debug mode does not affect the performance of the application if the debugger is not connected. Performance drops only if a debugger is connected, and then it will be low only in a method that contains a breakpoint. Proof https://docs.oracle.com/javase/8/docs/technotes/gu...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question