Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic