Back to articles
How to Run a Web Server on 27MB of RAM (and a Solar Panel)

How to Run a Web Server on 27MB of RAM (and a Solar Panel)

via Dev.toAlan West

There's something deeply satisfying about running infrastructure that costs literally nothing per month. No AWS bill. No DigitalOcean invoice. Just sunlight hitting a panel on your windowsill, powering a tiny computer serving real HTTP requests to real people. I got nerd-sniped by a project on Hackaday recently — someone running a solar-powered Raspberry Pi as a web server with only 27MB of RAM in use. My first reaction was skepticism. My second was "I need to try this." My third was three days of yak-shaving that taught me more about Linux memory management than the previous eight years combined. Here's what I learned about squeezing a web server into almost nothing. The Problem: Modern Web Servers Are Absurdly Bloated Spin up a basic Node.js Express server that serves a single HTML page. Check your memory usage. You're looking at 30-50MB minimum before a single request hits it. A default Apache install? Easily 100MB+. Nginx is leaner but still pulls in 10-20MB with its worker process

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles