Skip to content

Running full LEMP stack on 128MB RAM, here's what broke

VPS Hosting by Bruno22 79 replies 10K views
#41

Following this thread for the caching tips.

#42

I learn about swap tuning from this test. I set vm.swappiness=10 and made 1GB swap file. It help a little but MariaDB still crash when I try wp-admin.

ping so high I wave back
3 #43

Bruno22 said:
I set vm.swappiness=10 and made 1GB swap file.
Swap on VPS with slow disk just makes the OOM slower, not less likely. Your swap thrashes and MariaDB's InnoDB timeouts trigger. Better to let it die fast.

It's always DNS. Always.
#44

Bruno22 said:
1GB swap file
If you're on SSD-backed storage, swap is tolerable. If Contabo put you on HDD for that 128MB plan, swap is death. Check your disk type with `lsblk -d -o NAME,ROTA,TYPE`.

zfs send | zfs receive. repeat.
#45

ROTA is 0 so SSD. But still slow when swap active. You are right.

ping so high I wave back
#46

99.99% or bust and this is why I check status pages. Contabo's status page showed no issues but my 128MB instance was unresponsive twice this month. Not their fault, my fault for the spec.

436 days. reboot is surrender.
8 #47

Josh2002 here. I did the same test with Lighttpd instead of nginx. Saved maybe 5MB. Not enough to matter. The database is the bottleneck.

#48

josh2002 said:
Lighttpd instead of nginx
Lighttpd is lighter but the difference is marginal. The real win would be replacing PHP-FPM with something like RoadRunner or FrankenPHP that reuses workers. But still need RAM for the DB.

It's always DNS. Always.
#49

FrankenPHP on 128MB? That's optimistic. It's good software but not magic.

7 #50

Didn't say it would work on 128MB. Said it reuses workers, which is more efficient. The DB still needs 512MB minimum.

It's always DNS. Always.

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft