• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restart TOMCAT is required if server time is changed?

 
randhir sethi
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had a doubt that will a re-start of of our application which has TOMCAT as the web server and JBOSS as the Application server is required if there is a change in server time? Our Server OS is RHEL 4.0(Linux). The server time is probably behind the time by 15 mins.

I hope, my question is clear.

Please, help in solving the doubt.

regards
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, a couple of things:

1.) Are there any applications that your hosting that are reliant on accurate date/time.

2.) Try this is a non production environment without restarting Jboss and Tomcat, what happens? (Check the logs for timestamps to see how it reacts).
 
randhir sethi
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, for your answer. My answer to your queries will be like this:-

1) There may be applications which are reliant on accurate date/time. I am not sure on this as the developers will be knowing on this, I am just an implementor.

2) Doing it in a non-production environment will not be feasible as that would not be a real test for this and there are problems in putting up our test environment.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I very strongly suggest you get a test or development environment running with this scenario, you do _not_ want to be changing system times on production without testing the consequences first!
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
randhir sethi wrote:

2) Doing it in a non-production environment will not be feasible as that would not be a real test for this and there are problems in putting up our test environment.


Why would it be "not a real test"? Infact, you don't even need your application to be deployed on the test setup. All you need is a test application (with just a few lines of code) which gets the current system time and prints it. And you can see if the output changes on changing the system time.

I had a doubt that will a re-start of of our application which has TOMCAT as the web server and JBOSS as the Application server is required if there is a change in server time?


Do you have the option of restarting the server? If yes, then i would strongly recommend doing that in production - because any system level changes usually lead to some issue here and there (maybe not in your application but in some other application).
 
Vikky Bhat
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If we consider development environment there is no need of re-starting the server(web as well as application). changing the server time will immediately reflected. But considering a production environment and running application it is always better to restart the server as Jaikiran Pai said.otherwise it may leads to malformed response generation for the request by the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic