how do I know tomcat is running on Windows
Solution 1
It should appear as a javaw.exe
process. If you have multiple java apps running, you might have to keep an eye on how many are running to see if you gain 1 more after launching.
Solution 2
You can use WMIC.exe to get all the information that task manager would give you, INCLUDING the full command line of each process on the system. Then, you can use "FIND" to grep the output of that command and find a specific instances if you have more than one.
wmic.exe process list brief | find /i "tomcat"
To answer your specific question though, try starting Tomcat and redirecting the output to a log file and then examine it for errors:
C:\Temp\Tomcat6> startTomcat.bat>console.log&ECHO console.log
Solution 3
I recommend using TCPView to determine what processes are listening on what IPs/ports.
Solution 4
Powershell:
get-service "*apache*"
You can also enable telnet client feature. And then open command line and type telnet hostname port
and press enter. If cmd turns blank then it means that port is open and service is listening. You can then type /GET
and press enter to send the get request.
Solution 5
Since tomcat 9 you can recognize it in Processes with name "Tomcat9w" and in Services "Tomcat9"
Related videos on Youtube
Kenny Rasschaert
Open source consultant, ASCII art specialist.
Updated on September 18, 2022Comments
-
Kenny Rasschaert over 1 year
I'm on Windows, went to
%CATALINA_HOME%\bin\
and ran startup.I did see another commandline window popup and tomcat was loading some webapps that were there before (I had run webapp inside my IDE before that, now wanted to try from commandline). Then the window disappeared. I tried the address
http://localhost:8080/manager/html
, it's not loaded.So how do I know tomcat is running on Windows. I tried Task Manager didn't see it there.