Windows 7 Address already in use: JVM_Bind

Posted on 2012-08-23
Last Modified: 2012-09-26
On a windows 7 platform with cygwin, I try to launch activemq which, in my case, use port 61619.
From time to time, an exception is thrown :
Caused by: Failed to bind to server socket: tcp:// due to: Address already in use: JVM_Bind
When this exception is thrown, I use netstat -ao: there is no process listening to port 61619.

If I change my activemq conf in order to use another port (for instance 64000), it works fine.

Is it possible to have this exception even if netstat -ao doesn't list any process listening to this port?

Is it possible that a process reserves a range of ports, and if true, how to know which process and what range?
Question by:frederic_meunier
    LVL 14

    Expert Comment

    A server can only register a single TCP port.

    Use Sysinternals TCPView ( for more infos.

    Accepted Solution

    Thank you.

    With TCPView my problem remains: there is no process listening to port 61619, and I still have
    "Failed to bind to server socket: tcp:// due to: Address already in use: JVM_Bind."

    So I changed the port from 61619 to 64000, and will keep this "solution" until next JVM_Bind exception...

    Thank you again.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Image capture and Deploy method is consist on two phases. In our first phase we capture the image of windows from the PC in which Windows and others softwares are already installed. In second phase we deploy the created image on new PC in which we…
    By now, it is common knowledge that Windows 7 has been successfully been able to live up to the hype of being touted as Microsoft’s most anticipated O.S. ever. This latest 2010 Windows release builds up on its predecessor’s positives, adding new…
    This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
    This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now