Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Automatic restart of tomcat server

 
S. M. Sabbir
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two tomcat server on two different unix machine. I need to check whether both application server is running or not.
How can I check that an application server is properly running or not if It does not running I like to write a script that will automatically restart the stopped application server.
So how can I detect a server is not running??
 
Joachim Rohde
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let the OS take care of it: http://www.yolinux.com/HOWTO/Process-Monitor-HOWTO.html
Maybe also worth a look: http://java-monitor.com/ (even though this won't help with the restarting-issue)
 
Tim Holloway
Bartender
Posts: 18469
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I use Nagios to periodically poll the servers. It allows me to not only determine if Tomcat is running but that critical apps are performing critical functions.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!