-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Feature request: reduce memory usage #765
Comments
Just noticed I have 461MB usage with nordvpn openvpn here. |
After investigation, ram usage splits in the following:
Turning #137 is coming soon and might improve the memory usage, although blocking hostnames/IPs at the DNS level will always incur more memory usage. Closing this as there is not so much possible to do, except turning off DNS blocking. |
|
I've set the following environments: htop shows a memory usage of about 24.5 MB for gluetun-entrypoint, and 4.2 MB for the openvpn2.5 process. Is there any way to reduce the entry-point ram usage? or is this the lowest gluetun can go? Because I need to run many gluetun containers and I need them to consume the lowest ram possible. |
I'll have a look. I know ~3MB are used to have all the server data in memory at runtime, and that can be moved to lazy loading from disk. But apart from that, there might not be a way to reduce it further as I remember. |
I hope there's a way. Thank you for this great repository. |
You can dig into it by profiling the heap following steps in this new wiki page: https://github.com/qdm12/gluetun/wiki/Profiling |
What's the feature 🧐
I noticed memory usage goes to 300MB / 500MB even when using the kernel space Wireguard implementation and this is simply ridiculous (self shaming).
A pprof HTTP server should be setup to investigate why memory is so high.
Wild guesses are:
Extra information and references
No response
The text was updated successfully, but these errors were encountered: