Reading List

Fixing Memory Exhaustion Bugs in My Golang Web App from mtlynch.io RSS feed.

Fixing Memory Exhaustion Bugs in My Golang Web App

Earlier this year, I created an open-source app called PicoShare. It’s a simple Golang web app for sharing files. I use it to send files that are too large to be email attachments, but I don’t want the recipient to deal with Dropbox or Google Drive. A few months ago, I started seeing my PicoShare server die every few days. When I checked the logs, I saw an out of memory error: