Don't do the cron job. You'd just be putting a bandage on the real problem. Consult your server logs and see what they're saying around the time things go to shit.
If you can catch it happening, run top to find what's eating all of the memory.
https://www.varnish-cache.org/trac/wiki/Performance might give you some help too.