High CPU Usage Due to Infinite Loop in Connection
Class's run()
Method
#35
Labels
bug
Something isn't working
Connection
Class's run()
Method
#35
Description:
We have encountered an issue in the
run()
method of theConnection
class (executed through aTimer
). The method enters an infinite loop, causing high CPU usage and significantly impacting performance. This issue arises due to repeated attempts to send keep-alive messages without proper exit conditions or delays between retries.The issue has been observed on MetricsHub 0.9.03.
Affected Class:
org.sentrysoftware.ipmi.core.connection.Connection
Details:
run()
method can enter a tight loop, retrying to send keep-alive messages without sufficient delay, leading to 100% CPU usage.Proposed Solution:
pingPeriod
, allowing it to be set to0
to disable keep-alive messages.Environment:
The text was updated successfully, but these errors were encountered: