question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible memory leak with OPAL client

See original GitHub issue

I’m running an OPAL client container in Kubernetes. I recently looked at metrics on the memory usage of this container and noticed that memory is climbing and climbing until it hits 100%. This indicates a possible memory leak with OPAL client.

Screen Shot 2021-09-07 at 3 37 39 PM

Here is some more info:

I’m running the image authorizon/opal-client-standalone:0.1.12.

Here’s my env var config:

- name: OPAL_POLICY_STORE_URL
  value: http://localhost:8181/v1
- name: OPAL_SERVER_URL
  value: http://localhost:7002
- name: OPAL_DATA_UPDATER_ENABLED
  value: "0"
- name: OPAL_KEEP_ALIVE_INTERVAL
  value: "10"

And finally the command to run the container:

command:
  - "sh"
  - "-c"
  - "/usr/wait-for.sh http://localhost:7002 --timeout=20 -- /start.sh"

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
asafccommented, Oct 26, 2021

Sure @grantmcconnaughey 😃

I have started to investigate - i have a few leads & some follow up questions about your setup:

  • How often is the policy repo being updated? are you syncing with webhook? polling? no syncing at all?
  • You are running OPAL standalone - is OPA already running when you run opal client?
  • Is OPA ever being restarted during OPAL client’s runtime?
  • Are you still running 0.1.12? did you try to run the latest version?
  • Did you try to run OPAL client non-standalone (with built-in OPA) and see if the issue persists?

In any case i am trying to zero in with a profiler - will update as soon as i have something concrete 😃

1reaction
asafccommented, Oct 18, 2021

Hey @grantmcconnaughey, this is super helpful! we are on it! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Effective Debugging of Memory Leaks in Ruby - Stratus3D
Steps to Find a Memory Leak · 1. Check for any unused gems in the Gemfile and remove them · 2. Check the...
Read more >
Memory leak (Finalizer queue blocked by Oracle.DataAccess ...
There seems to be a memory leak associated with the web application.On further investigation it was found that objects in Finalizer Queue ......
Read more >
3 Troubleshoot Memory Leaks - Java - Oracle Help Center
This chapter provides some suggestions for diagnosing problems involving possible memory leaks.
Read more >
I'm getting a memory leak for fopen_s but nothing is 'new'ed or ...
This happens when functions like fopen make a one time allocation. If you then call fopen again you will not get more leaks....
Read more >
Diff - refs/heads/android-4.19-stable^! - kernel/common.git - Google Git
... sed-opal: kmalloc the cmd/resp buffers siox: fix possible memory leak in ... fix double disconnect client in chnl_net_open() bnxt_en: Remove debugfs ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found