Monday 26 August 2019

How to kill already bind port process in windows

When we start our application on already running port, we get port already bind error.

Resolution: for ex. I want to find PID associated with port 8083 and and want to kill process associated with it. go with below steps:


1. go to command line
2. Find process associated with port

C:\Users\sachin.rane>netstat -ano | findstr :8083
  TCP    0.0.0.0:8083           0.0.0.0:0              LISTENING       7576
  TCP    [::]:8083              [::]:0                 LISTENING       7576


3. kill the process

C:\Users\sachin.rane>taskkill /PID 7576 /F
SUCCESS: The process with PID 7576 has been terminated.

Screenshot:




Congratullations!!Its done!!

No comments:

Post a Comment

Extract error records while inserting into db table using JDBCIO apache beam in java

 I was inserting data into postgres db using apache beam pipeline. it works perfectly with JdbcIO write of apache beam library. But, now, i ...