-
Notifications
You must be signed in to change notification settings - Fork 39
Possible memory leak when using RIPE-NCC rpki-validator-3 as a source #38
Comments
Actually, I think this might be our old friend I'm going to try with |
Let me know what you find! Thanks for the investigation! I will take a look as well. |
It's been 4 hours and the memory usage is reasonable still. I'll keep it running for 24 hours to see whether it spikes overnight. Thanks! |
Ahah! So, running overnight, memory usage was low and stable with Here's the relevant logs:
The conditions seem to be:
Memory is never released afterwards, even with For reference, the memory ballooning instance has:
whereas the non-ballooning gortr has:
It's not clear from the logs which port is being connected to, but I imagine 8181 (metrics) and 8122 (ssh) are more port-scanable than others. Unfortunately, the true source-IPs are hidden because Docker Swarm proxies the connection so it always looks like it comes from private space :( Let me know if there's anything else I can provide, including the |
Thank you so much for all the details. My docker version is
|
I have the same image as you, I just accidentally took the Id rather than the repo digest ;) |
I'm just doing some playing around in Docker, and I noticed what could be a memory leak.
It appears to be using 8.6GB of memory after running overnight!
No valid client has ever connected to the daemon, which is running in a Docker container, as is the validator. There have been some invalid connection attempts (presumably port scans):
These do not correlate with the times memory usage jumped: (times are UTC+11 in this graph, whereas all timestamps elsewhere are in UTC, sorry!)
The source json is 13MB big:
Last relevant logs:
Finally, other gortr instances running against public instances, using the same binary, seem to be operating fine:
Docker image:
sha256:694635c16932987185a3d8d1056ef5ae287e799e7d36981a573d8baa8fc1e752
(cloudflare/gortr:latest which is 8 days old)This is a toy implementation for my own research purposes, I've not killed the daemon (yet) so if there's anything I can provide, please let me know. I figured it was worth letting you know!
The text was updated successfully, but these errors were encountered: