Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 592805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:46:42+00:00 2026-05-13T15:46:42+00:00

I realize that Java code will slow down when run in debugger. Question is,

  • 0

I realize that Java code will slow down when run in debugger.

Question is, will the code slow down simply by starting Java with these options:

Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n

??

Or does the slowdown only happen when you connect to the “debug port” and actually step through code using an IDE?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:46:43+00:00Added an answer on May 13, 2026 at 3:46 pm

    First, to strictly answer your question – at least as stated in its title – -Xdebug only enables debugging support in the VM using JVMDI in JVMs prior to 5.0. So in itself, it doesn’t do much. Moreover, JVMDI is deprecated since 5.0 in favor of JVMTI:

    –Xdebug
    Start with support for JVMDI enabled. JVMDI has been deprecated and is not used for debugging in J2SE 5.0, so this option isn’t needed for debugging in J2SE 5.0.

    So -Xdebug doesn’t do anything anymore and the important part is:

    -Xrunjdwp:<name1>[=<value1>],<name2>[=<value2>]...
    

    or, starting with Java 5.0, the newer (that you should prefer as the JDWP agent in 5.0 uses the JVM TI interface to the VM rather than the older JVMDI interface):

    --agentlib:jdwp=<name1>[=<value1>],<name2>[=<value2>]...
    

    Now, to my knowledge, just loading the jwdp agent and/or configuring the JVM to listen
    for a socket connection on a given port don’t have any noticeable performance impact. But connecting a debugger does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I realize that a SO user has formerly asked this question but it was
I realize that the answer to this question is likely quite obvious (if somewhat
I realize that this question has been asked 100times but none that I have
I realize that if you are having a same selection in JComboBox, using up/down
I realize that without code this might be hard to answer but the problem
I realize that since UNIX sockets are platform-specific, there has to be some non-Java
I realise that the Java 8 lambda implementation is subject to change, but in
I've creating a Java Swing application and I realized that I have many many
I realize that tinyint is a single byte integer (by the way, is it
I realize that virtual template functions are not allowed in c++. Because of my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.