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 6706827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:33:58+00:00 2026-05-26T07:33:58+00:00

So, we use Netbeans 6.9.1 , push our code to a SVN server (dev)

  • 0

So, we use Netbeans 6.9.1, push our code to a SVN server (dev) and run local webservers (Tomcat) that connect to MySQL on a DEV machine. We can run in debug mode and step through our code.

However, we then take our WAR file, push to a production machine (on a production database). This machine is completely separate from dev.

But we run into constant problems. Things like null id in Hibernate when we have triple-checked all columns, etc.

What we need is a way to attach a debugger to a PRODUCTION user and step through the code.

What are our options?

Thanks for any advice.

EDIT

I wanted to post a little more information. Thanks for those that have offered suggestions.

First, our production server hosts 3 apps (along with the prod db). The app we are having the most problems with just has one user and the data is almost identical to what we have in dev. We are having transaction problems with JDBC and can’t find out where they are coming from.

  • 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-26T07:33:59+00:00Added an answer on May 26, 2026 at 7:33 am

    If you really want to attach debugger to a running production server, Java is fully capable of doing this. First, run you server/JVM with the following commands:

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

    Now you can attach your IDE using prd_server:8788 address in Eclipse or IntelliJ IDEA.

    However there are few gotchas:

    • You need to have TCP/IP access to production server on a specified port. Probably some firewall/SSH tunnelling will be involved.

    • By default your debugger might suspend all threads when it hits the breakpoint. Make sure you only suspend the current one, otherwise you will freeze the whole server.

    • …yes, remote debugging is dangerous, especially on production.

    • JVM in debug mode/listening for debug connections might be slightly slower (haven’t seen it though).

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

Sidebar

Related Questions

I now use Netbeans rather than Eclipse but find that the Source code generation
I use NetBeans 6.5. When I try to run the following code: package com.afrikbrain.numeroteur16;
i use netbeans to check out projects from svn repo, then i edit the
Question simple and quick: I have started to use Netbeans to write some code
We have a netbeans project that has an xsd that we use to create
I'm trying to use NetBeans to compile C code and have the following versions
I'm a long-time eclipse user looking to use netbeans now that I've tried netbeans
I use Netbeans IDE, some where in the code I included this ImageIcon accept_icon
I use netbeans on my work and find that some things are hard to
I use: netbeans 6.9.1, tomcat 5.5.33, 7.0 and 6.x.x(inbuild-netbeans), java 1.6.23(both jdk and jre).

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.