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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 300k
  • Answers 300k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There are many ways (like yours) to achieve a similar… May 13, 2026 at 7:56 pm
  • Editorial Team
    Editorial Team added an answer My rule: if many records will use that default (at… May 13, 2026 at 7:56 pm
  • Editorial Team
    Editorial Team added an answer It sounds like you just want to send a command… May 13, 2026 at 7:56 pm

Related Questions

I have the following Java code to fetch the entire contents of an HTML
I use Launch4j as a wrapper for my Java application under Windows 7, which,
I’m from a .NET background and now dabbling in Java. Currently, I’m having big
I have already read various accounts of Clojure vs. Scala and while I realize
I need to add timezone information to a db table with user maintained locations.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.