hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[BUG] Frequent errors cause the CPU to surge, even when there is no traffic at all.

Open Snuger opened this issue 8 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Current Behavior

Image

2026-03-09 10:52:03 [victoria-metrics-cluster-flush-timer] ERROR org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage - flush metrics data to victoria-metrics error: Cannot invoke "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$Compression.enabled()" because the return value of "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$InsertConfig.compression()" is null. java.lang.NullPointerException: Cannot invoke "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$Compression.enabled()" because the return value of "org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsProperties$InsertConfig.compression()" is null at org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage.doSaveData(VictoriaMetricsDataStorage.java:689) at org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage$MetricsFlushTask.triggerDoSaveData(VictoriaMetricsDataStorage.java:655) at org.apache.hertzbeat.warehouse.store.history.tsdb.vm.VictoriaMetricsDataStorage$MetricsFlushTask.run(VictoriaMetricsDataStorage.java:646) at org.apache.hertzbeat.common.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:645) at org.apache.hertzbeat.common.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:722) at org.apache.hertzbeat.common.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:446) at java.base/java.lang.Thread.run(Thread.java:1583)

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s): 1.8

Debug logs

No response

Anything else?

No response

Snuger avatar Mar 09 '26 02:03 Snuger

modify manager configmap.yaml Solve the problem

warehouse: store: # store history metrics data, enable only one below jpa: enabled: true expire-time: 1h max-history-record-num: 100000 victoria-metrics: enabled: true url: http://{{ include "hertzbeat.tsdb" . }}:8428 username: root password: root insert: compression: enabled: false buffer-size: 100 flush-interval: 3

Snuger avatar Apr 09 '26 10:04 Snuger