LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > sag47
User Name
Password

Notices


Rate this Entry

Leap second and Java woes

Posted 07-27-2012 at 12:25 PM by sag47
Updated 07-27-2012 at 12:27 PM by sag47

This is kind of an old event however I thought I'd talk about it for both myself in the future and for anyone looking for an answer when it happens again. There is a bug in java or the kernel in which leap seconds cause some really nasty behavior. For instance, All app servers which include Jetty, Tomcat, and JBoss were pegged at 100% CPU usage and ridiculously high load averages. I don't know if this affects weblogic because if I recall they ship their own custom build of java which may or may not have this issue fixed. Restarting the app server does not resolve the issue however bouncing the entire server does resolve the issue (and destroys uptime). After the community put their heads together on the issue an easy fix was discovered. Simply restarting ntpd with some additional commands resolves the problem and java will chug on normally without the extra cpu load. In a nutshell here are those commands and the source where I found them.

Code:
/etc/init.d/ntpd stop
date
date $(date +"%m%d%H%M%C%y.%S")
/etc/init.d/ntpd start
Posted in Uncategorized
Views 2559 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration