Friday, March 23, 2018

Port already in Use - Tomcat

1) open Command Prompt

2) Run following commands

To get all listening ports

netstat -aon | find /i "listening"


TO get specific port filter

netstat -aon |find /i "listening" |find "8081"

Finally with the PID we can run the following command to kill the process

Copy PID from result set

taskkill /F /PID

Ex: taskkill /F /PID 189

Pascal Triangle Java Programe
Spring Annotations
Unix/Linux Commands 2
Unix/Linux Commands 1
Why String Is Immutable In Java
Inheritance Vs Composition In Java

Thanks for reading. If you like this post please follow us for more updates about technology related updates.

No comments: