You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there has a program and it consumes massive message from kafka. then it will trans the message to metrics format and use the vm metrics sdk to push to victoriametrics.
cause the vm metrics sdk holds global map to store the all the metrics in it and there has no expiring mechanism, the map will expand infinitely and finally the program oom. The process described above will be more obvious. Any solution to solve it?
and it seems there has a similar problem in https://github.com/prometheus/client_golang prometheus/client_golang#920
// Set is a set of metrics.
//
// Metrics belonging to a set are exported separately from global metrics.
//
// Set.WritePrometheus must be called for exporting metrics from the set.
type Set struct {
mu sync.Mutex
a []*namedMetric
m map[string]*namedMetric
summaries []*Summary
}
The text was updated successfully, but these errors were encountered:
there has a program and it consumes massive message from kafka. then it will trans the message to metrics format and use the vm metrics sdk to push to victoriametrics.
cause the vm metrics sdk holds global map to store the all the metrics in it and there has no expiring mechanism, the map will expand infinitely and finally the program oom. The process described above will be more obvious. Any solution to solve it?
and it seems there has a similar problem in https://github.com/prometheus/client_golang
prometheus/client_golang#920
The text was updated successfully, but these errors were encountered: