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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:05:24+00:00 2026-06-13T21:05:24+00:00

This problem is intermittent, occurring every few hours on a process that runs every

  • 0

This problem is intermittent, occurring every few hours on a process that runs every 30 seconds and performs the following network communication:

  • There is a server on a remote machine listening
  • The client connects to this machine and tells the server to connect back to it
  • The server closes the socket and reconnects to the client
  • When the socket closes on the client side, the client immediately starts listening on the same port

The JVM_Bind error happens on the client when it tries to start listening on the same port, even though it only tries to do this after the original socket is closed. Adding a slight delay of 100 milliseconds between the socket closing and opening a new socket prevents the JVM_Bind error.

What tools can I use to debug this scenario? Running continuous netstat has not shown anything interfering with the port.

Even though it’s a kind of bad idea to start a new socket listening on the same port, why would this error occur intermittently?

EDIT : Some additional information. The server connects back to the client from an ephemeral port on the server. The Client’s old socket would go straight into CLOSED and should be able to be re-opened. Wouldn’t the likely cause be something happening on the OS, JVM or hardware?

  • 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-06-13T21:05:25+00:00Added an answer on June 13, 2026 at 9:05 pm

    After messing around with this issue we eventually ran Wireshark and Procmon to monitor the TCP connections and packets. Procmon is a really great tool for debugging problems on Windows and can be configured to show when TCP connections are created and dropped. Wireshark shows the actual packet data going across the line. This output showed that things were proceeding as they should have when the JVM_Bind error occurs. There was no material difference in the logs between when it worked and when it failed.

    This pointed the blame at the system. I thought about system settings and then turned my attention to the possibility of a driver problem. Updated the network adapter drivers and the problem has gone away.

    Moral of the story is to debug network problems with Wireshark and Procmon, it turned this problem into an analysable one.

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

Sidebar

Related Questions

This is a really strange problem, that appears to be somewhat intermittent (although it
I'm experiencing an intermittent problem with a class that extends javax.swing.text.DefaultStyledDocument . This document
I have this intermittent problem with MySQL 5.1.33 (Community Server) for Windows, where the
I've had an intermittent problem that I thought was due to un-cleared floats. What
This is an intermittent problem, roughly 4/5 starts hit null pointer. Camel-Context.xml is below.
This problem appears to be intermittent, but I am not sure why exactly. When
I have an intermittent problem with a MySql database. Everything runs just fine for
I have an intermittent problem in a production system that I haven't been able
I have an intermittent problem with some code that writes to a Windows Event
This problem is same as asked in here . Given a list of coins,

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.