-
Notifications
You must be signed in to change notification settings - Fork 4
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
Possible memory leak with Twitcher/Magpie #113
Comments
Stats a week later,
The only recurrent error in
Any other clues as to how to diagnose this memory leak? |
I'm wondering if the chunk size is too high for this kind of usage? I'm not sure if this is necessarily a memory leak issue, more like a memory handling "optimization". |
In ESGF they want to use a security proxy with nginx configuration: The other parts of the service are implemented with Python/Django. Twitcher can to the same and is more convenient to use. Maybe we need a new implementation that works for both (ESGF, Birdhouse ...). With Nginx, FastAPI, Flask, ... ? |
Platforms that use Twitcher and Magpie in our cases are already being an nginx proxy. Is it used only for redirecting to the various services and it is already pretty big by itself without any rules for security. We must also remember that Magpie doesn't only do allow/deny session handling at the top level, but per sub-resource access for each service, over a large set of permissions. From experience, I found that doing very specific rules/path/query filtering with nginx can be very complicated and produce a lot of unexpected behaviour. I would avoid this as much as possible. |
Describe the bug
Twitcher is constantly taking lots of Memory.
Note below Twitcher is taking 23G of memory, while the front proxy only 30M, while having similar "NET I/O".
We have had a lot of Thredds activity lately so it's normal for the Cpu and Memory consumption to increase for Thredds since it has a caching feature.
But Twitcher saw a proportionally increase which is puzzling to me and stay like this during idle time.
Related bug on Magpie Ouranosinc/Magpie#505
To Reproduce
PAVICS deployed at this commit from pour production fork of birdhouse-deploy Ouranosinc/birdhouse-deploy@76dd3c8 which triple Thredds memory.
Lots of Thedds OpenDAP access on large
.ncml
file.Expected behavior
Twitcher Cpu and Memory would increase during Thredds transfer/activity but should go down during idle time, just like the
proxy
container.Context
[{"name": "Twitcher", "version": "0.6.2", "type": "application"}, {"name": "magpie.adapter.MagpieAdapter", "version": "3.19.1", "type": "adapter"}]
The text was updated successfully, but these errors were encountered: