hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] Severe Memory Leak: HashedWheelTimeout and LinkedBlockingQueue$Node Accumulation (45M+ Instances)

Open starryCoder opened this issue 6 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

I observed a critical memory leak in HertzBeat (likely related to timer tasks and queue systems), evidenced by heap analysis: Image

Expected Behavior

  • Timer tasks and queue nodes should be garbage-collected after completion.

  • Memory usage stabilizes under steady load

Steps To Reproduce

Run HertzBeat under sustained high load (200+ task).

Environment

HertzBeat version(s):v1.7.1
​​JVM​​: OpenJDK 17

Debug logs

No response

Anything else?

No response

starryCoder avatar Jul 02 '25 03:07 starryCoder

Hi, what tsdb are you using?

MasamiYui avatar Jul 23 '25 11:07 MasamiYui

Hi, what tsdb are you using?

VictoriaMetrics

starryCoder avatar Jul 25 '25 08:07 starryCoder