I am having a lot of crashes on my server lately. Restarting the server does bring it back up. But offcourse I would like a permanent solution. My var/logs is being "flooded" with errors like thes two:
- SQLSTATE[HY000]  Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
- SQLSTATE[HY000]  Lost connection to MySQL server at 'waiting for initial communication packet', system error: 95
The shop is running on a VPS. Which did the trick for a couple off years without errors. It is not a high traffic shop and it has a couple off hundred products.
The logs are close to empty at this moment and also all caches and database tables which can be cleaned have been cleaned.
Is this a matter off getting a heavier server or is there another problem which I have not been able to track down at this moment?
FYI: In the recent past the shop has been hacked. Maybe there is a connection? The shop is running on Magento 1.9.1 with all security patches.