© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Max Little
Coder and Cyclist
I have a t1.micro instance and my instance runs out of memory, occasionally.
Siddarthan Sarumathi Pandian
Full Stack Dev at Agentdesks | Ex Hashnode | Ex Shippable | Ex Altair Engineering
I think the following should work, I had to do the exact same thing a couple of weeks ago. In the command below, you add a 1GB swap to your instance.
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 sudo mkswap /swapfile sudo swapon /swapfile
Siddarthan Sarumathi Pandian
Full Stack Dev at Agentdesks | Ex Hashnode | Ex Shippable | Ex Altair Engineering
I think the following should work, I had to do the exact same thing a couple of weeks ago. In the command below, you add a 1GB swap to your instance.
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 sudo mkswap /swapfile sudo swapon /swapfile