Link to home
Start Free TrialLog in
Avatar of frederic_meunier
frederic_meunierFlag for France

asked on

Windows 7 Address already in use: JVM_Bind

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: java.io.IOException: Failed to bind to server socket: tcp://127.0.0.1:61619 due to: java.net.BindException: 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?
Avatar of DonConsolio
DonConsolio
Flag of Austria image

A server can only register a single TCP port.

Use Sysinternals TCPView (http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx) for more infos.
ASKER CERTIFIED SOLUTION
Avatar of frederic_meunier
frederic_meunier
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial