Site used to go down frequently on a near daily basis and is on Digitalocean VPS
Based on some suggestions I got on DO forum, I ran mysqltuner and increased innodb buffer pool size to 341M and innodb log file size to 64M
Since then the site goes down less but it still does every once in a while like last night.
There are plently of 'InnoDB: Cannot allocate memory for the buffer pool' in the mysql error log - pastebin
I've assigned swap space and I've ran netstat, vmstat etc too and everything seems alright.
But clearly I'm running out of memory as the logs suggest. How do I diagnose whats causing my server to run out of memory? Whether its a faulty plugin or apache or something else causing the issue instead of just upgrading the droplet?