As you say: at 4.00 couple of scripts are started. Could it be a hardware memory problem? Or are you running out of memory in general (swap full)
might be useful. For real hardware problem, you will have to run vendor specific memory tests; often you need to boot from a diagnostics CD.