Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restart Tomcat 6 every 5 hours.

 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Is there a way to configure Tomcat to restart every 5 hours?

Thanks
 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use cron or "schedule tasks" to restart it, but why would you want to?
 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Ess wrote:You could use cron or "schedule tasks" to restart it, but why would you want to?


I m using a free hosting service that will shut down your server every 6 hours. and you need to restart it.

can you suggest any better solution for that?

Thanks for your help
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What process do you use to restart the server now?

Are you allowed to put other applications or even batch (or shell script) files on this hosting service?

Bill

 
Joe Ess
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say use cron or "schedule tasks".
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Step 1: Find a better hosting service.
 
Sammy Bill
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Step 1: Find a better hosting service.


I guess they do that to let you buy the service.

but that is the only bad thing i noticed about the service. so for a free J2EE hosting. that is the best service i could find.

Can you suggest an alternative free j2ee hosting?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic