Saturday, August 14, 2010

java.net.BindException: Address already in use: JVM_Bind 8009

In most of our development machines, we would have installed so many things for our practice purpose, which will create hell of issues, on the port number. So many of you, have encountered the following exceptions, when starting our server
java.net.BindException: Address already in use: JVM_Bind 8009.
How to figure out which application is occupying my port
In Windows
1. In MS-DOS, send command "netstat -ao". You can get network information for all processes.

2. Find out the one using port 8009, get the PID.
3. Find out the process with the PID you just got from windows task manager and shut it down. (By default the Task Manager doesn't show the PID. You have to add it from the menu View Select columns)
4. That's it, restart your server

1 comment: