Using AI these days makes it super easy to optimize server resources by just changing the programming language of an app.
It all started when I woke up to my web server unresponsive. I couldn't even shell into it. I used my direct console login to restart SSH. The server load was above 50, and the swap was full. Oh no.
My optimization effort started with a bunch of WordPress websites that I had. I had AI rewrite them as static HTML sites. That helped save 100's of MBs of RAM on the server. No more Apache/PHP/MySQL to run. Then I took it a step further and converted my other WP sites to use SQLite. That save a heap of RAM also.
I have a bunch of placeholder sites that were PHP. Just one page with a title and a plugin. I had AI wrap them all up into a single container with a Go server/wrapper. That fixed up that memory/space issue.
I started looking at my bigger projects on the server. I used two apps from 37Signals. Ruby on Rails apps. Campfire and Fizzy. I really didn't use Fizzy much. So I dropped that. I do use Campfire a whole lot, but with only one other person. No rooms, bots, or anything else. Just chat.
So I had AI write up a new messaging system just for me and my business partner. Uses Go, WebSockets, and a very simple display. Went from 589MB RAM to 7MB. So much better.
Now my server is just above 60%. I have one more Ruby on Rails app to move off to another server and that should get my new web server down to a good level for more work to go on it.
