-
Notifications
You must be signed in to change notification settings - Fork 258
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 using Docker container #12
Comments
Thanks for the report! Yeah, that's definitely increasing. Do your images show the total memory usage of the full host, of all running containers (I'm assuming you're running more, like this), or just the I can confirm that I see some growth in memory usage on my public instance, though it seems to stop and even out after a while. (2 week period, from 32.2% to 33.4%, restarted for an update in the middle, 28.8% to 30.6%, memory usage of full system running these containers) |
The send Lightsail container service is only running send and I could try switching to Curious, where are you hosting your public instance? |
@timvisee perhaps related, if I don't set the envar |
Indeed this is still happening and looks like the containers crash and thus unfortunately causes Redis to also crash, expiring all outstanding links 😢 😠 . Running both send and redis in the same AWS Lightsail container task. Can send over that configuration if it helps. The only metrics I really have are: |
@timvisee here is the AWS Lightsail container configuration if it helps. Would pulling Redis out of the same container service as send and running it in a dedicated container service help at all? I would be absolutely shocked if the memory leak is in |
I don't think so. Either way, they're separate containers. A service is a virtual context to help 'link' things together. I did monitor the send.vis.ee instance for a while again. I don't see any of this weirdness. I wonder, are you running the container in production mode? If not, it won't be using Redis and stores entries internally. It might cause such issue.
Files are stored in a random temporary directory by default. See: Lines 173 to 177 in 742b5de
|
I am setting the envar If you think it makes sense, I can try running |
Yes, that's right. I wonder if it would affect it, I mean, I assume it to be just a Docker container, right.
That would be awesome. You might need to send some traffic to it though, in a similar pattern to your hosted instance. |
@timvisee I tried just for fun switching Redis to use the following image tag |
Can't 💯 confirm, but it looks like there may be a memory leak. I am hosting my own version of send on AWS Lightsail using their container service (essentially ECS). Memory usage is continuously increasing linearly. Running latest version of send
v3.4.5
via Docker container.The text was updated successfully, but these errors were encountered: