What to do if tomcat process remains when tomcat is stopped in eclipse

If you stop tomcat in Eclipse and then start it again, you will get an error message stating that the port is being used, or in the case of Spring boot, "The Tomcat connector configured to listen on port 8080 failed to start. The port may already. The message "be in use or the connector may be misconfigured." May appear on the Eclipse console. These errors occur when the tomcat process remains after stopping tomcat. Therefore, in order to start tomcat on the same port again, it is necessary to stop the tomcat process once. Here, we will explain three ways to stop the tomcat process. The following environment is assumed.

--Environment

OS: macOS Mojave Eclipse version: Photon Release (4.8.0) tomcat8

How to stop tomcat process

--Stop the process in Activity Monitor.

  1. Open Activity Monitor.
  2. Look for the process name "java" displayed in the Activity Monitor. (Hover over Activity Monitor and press the "j" key to find it.)
  3. Double-click on "java" to bring up a window, then press the exit button for that window.
  4. When the message "Are you sure you want to end this process?" Is displayed, press the end button.

--Check the PID of the process with the top command and exit.

  1. Open terminal.
  2. Execute the following command on the terminal screen.
> top | grep java  

Then, the process of "java" is displayed, and the PID is displayed on the far left, so copy it. 3. Execute the following command.

> kill <Copyed PID>

--Specify the process name with the pkill command and exit.

  1. Execute the following command.
> pkill java

that's all. I think that some people will fall in love with tomcat when it's just touched, so I hope it helps.

Recommended Posts

What to do if tomcat process remains when tomcat is stopped in eclipse
What to do if ClassNotFoundException occurs when starting Tomcat
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
[Rails] What to do if data is not registered in DB
What to do if Cloud9 is full in the Rails tutorial
What to do if the prefix c is not bound in JSP
What to do if the server tomcat dies
What to do if you get a JNI shared library error when trying to build in Eclipse
What to do when IllegalStateException occurs in PlayFramework
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if ffi installation fails when launching an application in Rails
What to do if rails server can't be stopped
What to do if password authentication fails in Docker/Postgres
ParseException: What to do when Unparseable date is reached
What to do if Command line is too long appears when building a gradle project in Intellij IDEA
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
What to do when Address already in use is displayed after executing rails s
What to do if you get a java.io.IOException in GlassFish
What to do when Method not found in f: ajax
What to do if audio is not available on discordrb
What to do if FacesMessage is set but not displayed
What to do when Git Repository cannot be displayed in Team Explorer for Eclipse in Azure
What to do when javax.batch.operations.JobStartException occurs
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
What to do if you get a gcc error in Docker
What to do when the changes in the Servlet are not reflected
"ClassNotFoundException" is displayed when tomcat is started in eclipse and cannot be started
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if you get a DISPLAY error in gym.render ()
What to do if you forget the root password in CentOS7
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do when you want to know the source position where the method is defined in binding.pry
What to do if the app is not created with the latest Rails version installed when rails new
What to do if an error occurs when doing npm install axios in React + Typescript project
What to do when a javax.el.PropertyNotWritableException occurs
What to do if you install Ubuntu
What to do when undefined method ʻuser_signed_in?'
[IOS] What to do when the image is filled with one color
What to do if you get a groovy warning in Thymeleaf Layout
What to do if the background image is not applied after deployment
What to do when "npm ERR! Code ENOSELF" is displayed after npm install
What to do if you can't install the plugin from the Eclipse marketplace
What to do when Blocked Host: "host name" appears in Ruby on Rails
What to do and how to install when an error occurs in DXRuby 1.4.7
What to do if an error occurs when nokogiri enters when bundle install
Notes on what to do when EC2 is set up with t2.micro
What to do if you get an error when you hit Heroku logs
Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12
What to do if you get Application with name appName is already registered. When you try to start GlassFish
What to do if zip dies if there is a pom when making an executable jar with gradle
[Gradle] [checkstyle] What to do if the active setting of Checkstyle is removed by "Refresh Gradle project" from Eclipse
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do when you want to delete a migration file that is "NO FILE"
What to do when you think you can't do Groovy-> Java in IntelliJ IDEA CE
What to do if you are told "there is no main manifest attribute" when creating a jar file containing dependencies in a maven project
What to do if the changes are not reflected in the jar manifest file
What to do when the value becomes null in the second getSubmittedValue () in JSF Validator
When the server fails to start in Eclipse
What to do when rails db: seed does not reflect in the database
What to do if you get an "A server is already running." Error when you try to start the rails server