-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak during configuration update #756
Comments
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. |
Hi @flymedllva please provide a reproducible example. We can't investigate with this little information. Waiting for your feedback! |
@StarpTech Enough N times, make the schema puller download and apply a new schema, each time a new schema is applied (they must be different) the memory consumption of the application increases. |
@StarpTech hi, I've updated the issue description with a handy example to reproduce the issue, have a look again Thanks |
@flymedllva thank you. We'll take a look. |
Have you looked at this problem? Any news? |
Hi @flymedllva, it is on our list, but it is not our highest priority. Please consider #756 (comment). If this issue prevents you from making progress with WunderGraph, please consider becoming a customer. This allows us to put the necessary resources on this. |
Hi @flymedllva Has this improved with the latest version? Thanks |
Component(s)
router
Component version
wgc version
controlplane version
router version
v0.82.1
What happened?
Description
When updating the router configuration using
r.updateServerAndStart
, memory consumption increases.Enough N times, make the schema puller download and apply a new schema, each time a new schema is applied (they must be different) the memory consumption of the application increases.
This is especially noticeable on large schematics larger than 20 mb.
Steps to Reproduce
I made an example frequently updating the schema, after a few minutes of router operation the memory consumption increases even on a small schema
In order to reproduce, clone the repository and start the router
https://github.com/flymedllva/cosmo-memory-leak-during-configuration-update
Commit necessary to reproduce the problem: https://github.com/flymedllva/cosmo-memory-leak-during-configuration-update/commit/880955ebc9e0435e3d9c2dfed7faa3dfb57f56c9
Environment information
OS: 14.4 (23E214)
Package Manager: npm
Compiler(if manually compiled): go version go1.22.1 darwin/arm64
Router configuration
Router execution config
No response
Log output
No response
Additional context
The text was updated successfully, but these errors were encountered: