Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 02/07/2012 15:26:20

arthur.ebel
Guest
Registered: 17/05/2011
Posts: 8

Leap second bug causes site, software crashes

Bonjour,

Une petite expérience à partager, ce WE quelques serveurs TOMCAT et autres applis JAVA se sont affolés (CPU bloqué à 100%) sur certains de nos serveurs.

La cause a été identifiée et porte le nom de leap second bug :

Ce WE a été ajouté une seconde sur les horloges atomiques ce qui a impacté les serveurs utilisant ntpd et en particulier des Linux faisant tourner des applications java.

Voici la façon de régler le problème, efficace chez nous :

java leap second bug – 30 June / 1 July 2012 – fix

July 1, 2012, 6:28 am
If your java applications suddenly started to use 100% CPU, you’ve hit java leap second bug.

First, you may check if you have the following in your dmesg:


[10703552.860274] Clock: inserting leap second 23:59:60 UTC

Fortunately the fix is straightforward:

/etc/init.d/ntpd stop
date `date +"%m%d%H%M%C%y.%S"`

You don’t have to restart your java applications (tomcat, wowza, or whatever using java); it should be enough to run the above commands.

You may want to enable ntp the next day (there were some reports that enabling it makes java misbehave on some installations).

Apparently this issue has knocked down lots of Linux servers running Debian, Ubuntu, CentOs and the like around the globe!

Last edited by arthur.ebel (02/07/2012 15:27:32)

Offline

Board footer

Powered by FluxBB