-
Notifications
You must be signed in to change notification settings - Fork 59
Memory spikes in plugin-barman-cloud sidecar #825
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I have a strange memory behaviour, sometimes the memory usages spikes up to 35GB!
When the spike starts, there are no basebackups or WAL backups running.
The sidecar is running with logLevel: trace
here are the logs from the time the last spike started
as suggested by @mnencia the kube admin had a look into the cgroup of the pod.
These are the commands he used to
cd /sys/fs/cgroup/kubepods.slice/kubepods-burstable.slice/
crictl --runtime-endpoint unix:///run/containerd/containerd.sock pods
...
POD ID CREATED STATE NAME NAMESPACE ATTEMPT RUNTIME
ae2b9d6dca19a 2 hours ago Ready wldiva4t-1 cnpg-system 0 (default)
...
...
crictl --runtime-endpoint unix:///run/containerd/containerd.sock inspectp ae2b9d6dca19a
"createdAt": "2026-03-30T17:16:07.401632246Z",
"id": "ae2b9d6dca19a6934a90a7a1506d89628eaaf704c82d3b1b894e265f9709c9e5",
"labels": {
"app.kubernetes.io/component": "database",
"app.kubernetes.io/instance": "wldiva4t",
"app.kubernetes.io/managed-by": "cloudnative-pg",
"app.kubernetes.io/name": "postgresql",
"app.kubernetes.io/version": "15",
"cnpg.io/cluster": "wldiva4t",
"cnpg.io/instanceName": "wldiva4t-1",
"cnpg.io/podRole": "instance",
"io.kubernetes.pod.name": "wldiva4t-1",
"io.kubernetes.pod.namespace": "cnpg-system",
"io.kubernetes.pod.uid": "bc27d9b9-03ac-4c40-8dd3-a79b753293dd",
"release": "prometheus-operator",
"topology.kubernetes.io/zone": "domain-c1011"
ls -tlraR|grep ae2b9d6dca19a6934a90a7a1506d89628eaaf704c82d3b1b894e265f9709c9e5
root@cl-postgres-test-worker-nodepool-a3-2gxzx-g7x7n-9k5f2:/sys/fs/cgroup/kubepods.slice/kubepods-burstable.slice# ls -tlraR|grep ae2b9d6dca19a6934a90a7a1506d89628eaaf704c82d3b1b894e265f9709c9e5
drwxr-xr-x 2 root root 0 Mar 30 17:16 cri-containerd-ae2b9d6dca19a6934a90a7a1506d89628eaaf704c82d3b1b894e265f9709c9e5.scope
./kubepods-burstable-podbc27d9b9_03ac_4c40_8dd3_a79b753293dd.slice/cri-containerd-ae2b9d6dca19a6934a90a7a1506d89628eaaf704c82d3b1b894e265f9709c9e5.scope:
/sys/fs/cgroup/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-podbc27d9b9_03ac_4c40_8dd3_a79b753293dd.slice/cri-containerd-ae2b9d6dca19a6934a90a7a1506d89628eaaf704c82d3b1b894e265f9709c9e5.scope
ls |while read a; do echo "=================="; echo "file: $a"; cat $a; echo "================="; doneHere is the output
cgroup.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working