Applications caused by Linux leap second problems

Source: Internet
Author: User

Applications caused by Linux leap second problems

Leap second indicates that the Linux system automatically adjusts the system time. This usually happens at the end of a month, probably at the end of June and December, when leap second occurs, the application (Java) may be busy, resulting in slow response.

If leap = 01 is returned in the following command, it means that leap second will occur.

Ntpq-c "lassoc"-c "mrv & 1 & 1 & 999 leap, srcadr, stratum"

If the following command returns "no leap seconds", it indicates that no leap second occurs.

File/etc/localtime

If the following command returns, leap second occurs.

Ntptime | egrep 'ins | DEL'

If your system has the leap second problem, you can solve it in the following ways.

-Stop the ntpd service.

-Reset the Kernel Status and frequency,

Ntptime-s 0-f 0

-Append-x to the/etc/sysconfig/ntpd file to enable slew mode.

-Start the ntpd service.

Leap second occurs in a specific ntpd and kernel. In this article, a C program for leap second stress testing is attached.

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.