How to kill tomcat server?

This is the similar way to kill any responsive or unresponsive server/executable.

On MAC:

Step 1)

ps -awwef | grep tomcat

This gets the process identifier aka pid (3rd from the list when you run the command)

Step 2)

sudo kill -15 <pid>

Kills the given process

On WINDOWS:

Step 1)

netstat -o -n -a | findstr 8080

Step 2)

taskkill /F /PID 4184

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s