Skip to content

argocd-application-controller faces a memory leak when server url ends with a / #488

@prakarsh-dt

Description

@prakarsh-dt

Checklist:

  • I've searched in the docs and FAQ for my answer
  • I've included steps to reproduce the bug.

Describe the bug

Argocd-application controller faces a memory leak when server url in application controller ends with a trailing / as described in argoproj/argo-cd#5578

To Reproduce

  1. Edit any existing application object and append a / in the end in server.
  2. Check resource usage of argocd-application-controller pods on Grafana

Current behavior

If an application object server url ends with a trailing /, argocd-application-controller memory usage keeps growing higher and ultimately gets OOMKilled.
Screenshot 2021-05-26 at 12 20 19 AM

Expected behavior

While the fix for this memory leak issue is in argocd-1.8.6 but meanwhile we can prevent user from entering the trailing / in server url on the UI and trim off any trailing slash while saving it.

Screenshots

Screenshot 2021-05-28 at 9 58 04 AM

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions