• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat Running status

 
Hunter Dash
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do i check to see if an instance of tomcat is already running?
Is there an option like tomcat.sh -status or something like that available?
 
ryan headley
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From your statement, it looks like you are using a flavor of Unix...if I am correct, you should be able to type the following:
ps -ef | grep tomcat
it should display a line with a process ID number etc and at the end of that line it should say "tomcat".
If all you get back is something that ends with "grep tomcat", than I think its safe to say there is no other instance running.
 
Hunter Dash
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply. Each application on the box is using its own instance of tomcat. So when issued the command ps -ef | grep tomcat i see tens of process id's and others info. I think i found another solution.
on UNIX, issuing NETSTAT -an | grep "port number" where port number where tomcat is listening will also tell us if tomcat is running.
Thanks anyway for your help.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!