Beginner load question. please help with a guess

On a small ubuntu droplet, running nothing but express.js, (I know nginx is better)

How many simultaneous, static file downloads might be possible before the server got stressed? (even if each download slowed a little)

Lets imagine they are all 1 meg images, if that helps, with the mind experiment?

Would it be 50, 100, or maybe 1000?

How might this be different with one gig ram?

  • To make it simpler lets say else is happening on the droplet.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I once wrote an HTTP API in node (no framework) and within 50 request, not even simultaneous, the server was toast. The memory leak struggle is real.

So as long as node doesn’t buckle under the weight of a few lines of bad code, then I would recommend opening top or htop in terminal, sorting it by memory use and hitting refresh a bunch of times in your browser. Or setup 20 tabs to refresh every 2 seconds. Or very 30 seconds and come back in a few hours to make sure no slow leaks are happening. Or use a number of purpose-built stress testing applications to send a lot of traffic to your site so you can see where your failure point is.