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
In certain scenarios, running redactor when collector a support bundle can consume a lot of memory leading to OOM signals killing pods.
Here is are memory profiles of this happening in KOTS .
With v0.71.1
With v0.70.3
NOTE: This has not been reproduced when using the CLI. From comments below
Checkout v0.71.1 of troubleshoot
Build binaries make build
Collect and redact support bundle - ./bin/support-bundle ./support-bundle.yaml --memprofile=mem.conf --redactors ./redactor.yaml with support-bundle.yaml and redactor.yaml
Analyse memory allocations - go tool pprof -http :8888 -alloc_space mem.prof will start an http server on port 8888
Expected Behavior
Redaction code should not consume excess memory.
Steps To Reproduce
Include the commands to reproduce the issue including any output. Any information that will help us to understand the problem is useful. Feel free to paste long output into a Github gist and include the link here.
To be fleshed
Additional Context
Include the following information.
Troubleshoot version. If you built from source, note that including the version of Go you used to build with.
Operating system
Operating system version
Other details that might be helpful in diagnosing the problem
The text was updated successfully, but these errors were encountered:
The higher memory consumption can also be reproduced from the CLI:
Modify the cmd/troubleshoot/main.go function so that it generates a memory profile (might be a better way to do this without rebuild the binary, but this is how I got it working):
Bug Description
In certain scenarios, running redactor when collector a support bundle can consume a lot of memory leading to OOM signals killing pods.
Here is are memory profiles of this happening in KOTS .
With v0.71.1
With v0.70.3
NOTE: This has not been reproduced when using the CLI.From comments belowv0.71.1
of troubleshootmake build
./bin/support-bundle ./support-bundle.yaml --memprofile=mem.conf --redactors ./redactor.yaml
with support-bundle.yaml and redactor.yamlgo tool pprof -http :8888 -alloc_space mem.prof
will start an http server on port 8888Expected Behavior
Redaction code should not consume excess memory.
Steps To Reproduce
Include the commands to reproduce the issue including any output. Any information that will help us to understand the problem is useful. Feel free to paste long output into a Github gist and include the link here.
To be fleshed
Additional Context
Include the following information.
The text was updated successfully, but these errors were encountered: