Wednesday, April 24, 2013

Kill a Proccess Running on Winodws Port - Localhost

I was struggling for couple of hours while running a Junit.
To execute it I need to run a hazelcast instance on localhost first but somehow the Hazelcast was running at those port becasue of which my junit keep hanging and waiting for the port to be release.

Just find out a way to figure out to manually kill the port

  • List the processes running on ports
        netstat -a -o -n
  • Look for the process you need get the PID.
        taskkill /F /PID XXX

No comments: