Linux leap second problem caused by slow application

Source: Internet
Author: User

Leap second refers to a Linux system that automatically adjusts the system time, which usually occurs at the end of a month, most likely the month of June and December, when a leap second occurs that can cause the application (Java) to be busy, resulting in a slow response.


If there is a leap=01 in the return of the command, it means that there will be a leap second happening

Ntpq-c "Lassoc"-C "MRV &1 &999 leap,srcadr,stratum"

If "No leap seconds" is returned in the following command, it means that no leap second will occur.

File/etc/localtime

If the following command returns, it indicates that a leap second occurs.

Ntptime |egrep ' ins| DEL '

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

- Stop NTPD Service

-Resets the kernel state and frequency,

Ntptime-s 0-f 0

-X is appended to the/etc/sysconfig/ntpd file, enabling Slew mode

-Start NTPD Service


Leap second occurs in specific ntpd and kernel, this article is labeled a leap second stress test C program.

leap-a-day.c



This article from the "Linux and Network" blog, reproduced please contact the author!

Linux leap second problem caused by slow application

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.