Comments (10)
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:
from send.
@timvisee I tried just for fun switching Redis to use the following image tag redis:6.2.6-bullseye
instead of using Alpine. Unfortunately, same behavior. This is a graph of memory usage for the last day in AWS Lightsail. Testing send locally is gonna be a bit of work for me, but I will get around to it.
from send.
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 send
container specifically?
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)
from send.
The send Lightsail container service is only running send and redis:6.2.1-buster
. I suppose it could be redis that is increasing memory usage, but honestly not using send much (maybe a total of 10 uploads). So, not sure why redis memory usage would be steadily increasing.
I could try switching to redis:6.2.1-alpine
instead of using Debian Buster.
Curious, where are you hosting your public instance?
from send.
@timvisee perhaps related, if I don't set the envar FILE_DIR
the default is to write to the filesystem right? What directory does it use by default? It's not possibly writing files into redis is it?
from send.
@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 redis:6.2.5-alpine3.14
from send.
Would pulling Redis out of the same container service as send and running it in a dedicated container service help at all?
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.
perhaps related, if I don't set the envar
FILE_DIR
the default is to write to the filesystem right? What directory does it use by default? It's not possibly writing files into redis is it?
Files are stored in a random temporary directory by default. See:
Lines 173 to 177 in 742b5de
from send.
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.
I am setting the envar NODE_ENV
to production
that should do it right? I do wonder if something specific to Amazon Lightsail containers is at fault. I am not seeing it though.
If you think it makes sense, I can try running send
locally and leave it up for a few days and see if I can replicate the memory leak.
from send.
I am setting the envar
NODE_ENV
toproduction
that should do it right? I do wonder if something specific to Amazon Lightsail containers is at fault. I am not seeing it though.
Yes, that's right. I wonder if it would affect it, I mean, I assume it to be just a Docker container, right.
If you think it makes sense, I can try running
send
locally and leave it up for a few days and see if I can replicate the memory leak.
That would be awesome. You might need to send some traffic to it though, in a similar pattern to your hosted instance.
from send.
This has to be something either in the code, or a problem with hosting container on AWS Lightsail. Looks like memory usage grows for 7 days, then the process restarts. Upon, restart though, all the outstanding links expire which is also a flag to me.
Memory
CPU
from send.
Related Issues (20)
- Fix permission on upload folder in docker HOT 2
- Anyone figured out a way to force dark mode? HOT 4
- Any way to make the upload accessible only for internal users and download for external? HOT 2
- If you click the logo then you're redirected to the homepage. How can I turn this off? HOT 2
- Logo reverse back after npm run build
- Error with redirection because of the # in the last part of the link url
- Add `unlimited` as an option for max downloads when sharing a file
- Uploading a folder not working HOT 2
- CUSTOM_DESCRIPTION does not seem to work
- Using send with password behind apache reverse proxy failed HOT 2
- Uploads fail after Send has been running for a extended period fo time HOT 1
- Can`t install Send
- Is it possible to recover an expired link data? HOT 1
- customizing the text under Simple, private file sharing HOT 2
- Is there a possibility to keep the unexpired send-archive always visible? HOT 1
- [FEATURE REQUEST] Add folder picker option like WeTransfer HOT 3
- [Request] ARM64 Support HOT 1
- Download URL accessible but files won't download. HOT 3
- Docker Compose Install - Customization HOT 1
- Feature Request: View-Only Mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from send.