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

See original GitHub issue

EdgeDB version: 1.0-alpha.2+dev.505.g5b68ec24 (docker image) Docker version: 19.03.5-ce, build 633a0ea838

I noticed that EdgeDB uses 5GB of RAM on my server after a few days of running it. I found out that there are a lot of processes:

~ ps -ef|grep edgedb|wc -l
141

Looks like the reason for that are unclosed interactive sessions:

~ docker exec -it edgedb-server edgedb -u modbay_beta
# ...
~ ps -ef|grep edgedb|wc -l
142

After restarting containers all these processes are gone and RAM usage is under 150mb:

~ docker restart edgedb-server
edgedb-server
~ ps -ef|grep edgedb|wc -l
7

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
Fogapodcommented, Jan 23, 2020

It looks like memory usage raises even without dirty disconnects. I made sure I always call await pool.aclose() and I always check that there are no tracebacks. I have to restart db container at least once a day because memory usage raises to several gigs.

Is there a way to list active sessions or other way to list active resources?

0reactions
elpranscommented, Sep 28, 2020

The situation improved a lot since then. I have edgedb instance running for days

Closing. Feel free to open a new issue if you see abnormal behavior again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My system scan results says "An active process has a possible ...
My system scan keeps telling me "An active process has a possible memory leak (Microsoft EdgeCP.exe)
Read more >
How do I check for memory leaks, and what should I do to stop ...
To find a memory leak, you've got to look at the system's RAM usage. This can be accomplished in Windows by using the...
Read more >
Memory leak / Handle leak | Firefox Support Forum
Here is a fairly simple explanation for a memory leak: A Memory leak occurs when your computer closes an open program and that...
Read more >
Memory leak - Wikipedia
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in...
Read more >
How To Fix Windows 10 Memory Leaks - Online Tech Tips
How To Fix Windows 10 Memory Leaks · Restart Your PC · Use Windows Memory Diagnostic to Fix a Windows 10 Memory Leak...
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