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