aspose file tools*
The moose likes Tomcat and the fly likes Restart Tomcat 6 every 5 hours. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Restart Tomcat 6 every 5 hours." Watch "Restart Tomcat 6 every 5 hours." New topic
Author

Restart Tomcat 6 every 5 hours.

Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
Hello,

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

Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

You could use cron or "schedule tasks" to restart it, but why would you want to?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
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

Joined: Mar 22, 2000
Posts: 12805
    
    5
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

Joined: Oct 29, 2001
Posts: 8927
    
    9

I'd say use cron or "schedule tasks".
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61426
    
  67

Step 1: Find a better hosting service.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sammy Bill
Ranch Hand

Joined: Dec 29, 2008
Posts: 96
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
 
 
subject: Restart Tomcat 6 every 5 hours.