今天我注意到我的LDAP服务器(OpenDS)在每个可用核心上消耗100%的cpu.快速诊断显示我在futex锁定期间有很多ETIMEDOUT.
我如何调试它以弄清楚发生了什么以及如何解决它?
futex(0x7f7ecf9053a4,FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME,1540779077,{1342114766,309244206},ffffffff) = -1 ETIMEDOUT (Connection timed out) futex(0x7f7ecf9053d0,FUTEX_WAKE_PRIVATE,1) = 0 futex(0x7f7ecf9053a4,1540779079,309528293},1540779081,309812186},1540779083,310107537},1540779085,310406075},1540779087,310705339},1540779089,311018839},1540779091,311315446},1540779093,311632617},1540779095,311951779},1540779097,312278610},1540779099,312601929},1) = 0
不确定它是否相关 – 但我也注意到Redmine(Ruby应用程序)有类似的“功能”…帮助:)
解决方法
哇,我花了额外的时间谷歌搜索,似乎闰秒是一个共鸣:
http://blog.wpkg.org/2012/07/01/java-leap-second-bug-30-june-1-july-2012-fix/
解:
date `date +"%m%d%H%M%C%y.%S"`