Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I am using the Linux machine. I am configuring it for the session repication of the tomcat. My requirement is that both the machine must be synchronise with some standard time. May be with some internate time.If any one ans me how to synchronise both the machine?

share|improve this question

prefer ntpd over ntpdate since ntpdate is deprecated

share|improve this answer

Use an NTP server and ntpdate is an option: ntpdate -u Run this as a crontab every minute on both servers.

EDIT: I'm not sure if this option is available on Debian. Apologies if not, let me know and I'll delete.

share|improve this answer
It's available. I still prefer using an ntp server though, as ntpdate jumps through the time when the clock is wrong while the server adjusts the clock speed until the time is correct. Jumping through the time is bad, especially when it goes backward, as times in log files will be ambiguous and some programs have problems with non-continuous time. – Sven Aug 9 '10 at 11:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.