Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

High memory consumption #103

Open
StepanKuksenko opened this issue Jan 15, 2020 · 5 comments
Open

High memory consumption #103

StepanKuksenko opened this issue Jan 15, 2020 · 5 comments

Comments

@StepanKuksenko
Copy link

StepanKuksenko commented Jan 15, 2020

Eventrouter is constantly increasing the amount of memory consumed.
In one of our cluster after one month eventrouter uses near 8Gb of memory.

It is the output of top command in eventrouter pod (containter)

  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
    6     1 nobody   S    7944m  23%   1   0% /eventrouter -v 3 -logtostderr
   32     0 nobody   S     1524   0%   6   0% sh
   43    32 nobody   R     1520   0%   0   0% top
    1     0 nobody   S     1516   0%   5   0% /bin/sh -c /eventrouter -v 3 -logtostderr

I will configure limits. But what will happen if eventrouter reaches the memory limit? Will it work correctly. And why does it use so much memory?

@timothysc
Copy link
Contributor

So something doesn't seem right.
@johnSchnake

@StepanKuksenko
Copy link
Author

StepanKuksenko commented Jan 23, 2020

still have this problem in all our clusters in GKE.
When i limit memory usage for eventrouter pod memory usage increases during a time, when memory rests to limit pod restarts with "OOMKilled" reason.
There are 247 restarts during seven days.

    State:          Running
      Started:      Thu, 23 Jan 2020 13:00:54 +0300
    Last State:     Terminated
      Reason:       OOMKilled
      Exit Code:    137
      Started:      Thu, 23 Jan 2020 12:48:53 +0300
      Finished:     Thu, 23 Jan 2020 13:00:51 +0300
    Ready:          True
    Restart Count:  247
    Limits:
      cpu:     100m
      memory:  256Mi
    Requests:
      cpu:        100m
      memory:     256Mi

@marckamerbeek
Copy link

Same problem here...

@njlkj
Copy link

njlkj commented Sep 15, 2020

involved_object_name is a label with high cardinality

kubernetesWarningEventCounterVec = prometheus.NewCounterVec(prometheus.CounterOpts{
	Name: "heptio_eventrouter_warnings_total",
	Help: "Total number of warning events in the kubernetes cluster",
}, []string{
	"involved_object_kind",
	"involved_object_name",
	"involved_object_namespace",
	"reason",
	"source",
})

@njlkj
Copy link

njlkj commented Sep 15, 2020

So something doesn't seem right.
@johnSchnake

#119

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants