Possible memory leak
See original GitHub issueEdgeDB 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:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
Closing. Feel free to open a new issue if you see abnormal behavior again.