My scraping VPS keeps running out of memory too and I restart it every couple of days.
> so I created a button that would call the API to restart the box
Been thinking about building a 'button' that does this as well. Will check out TSK to see how well it addresses this. Sound idea for sure.