Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a web server that has been running pretty smoothly for years. Twice recently it has gone down for no apparent reason - the monit logs don't show any particularly high anything going on. CPU usage is low, network out is 0, network in is low. Logs don't show any unusual requests around that time for my PHP or Django applications, or anything weird in the kernel log (that I can tell). Plenty of free disk space. I tried to ssh in, and was also unable to get in from my VPS providers Ajax console. I had to reboot the system.

Every system log file open at the time has garbled stuff at that time some - it shows in less as '^@^@^@^@^@^@'. While the system is crashed or whatever, nothing seems to be happening (no cronjobs, for instance, no syslog entries).

When this happened a second time, right in a log file I was writing from PHP at that time, there's a there's a chunk of text apparently from another file on disk - an SQL backup I have somewhere else on disk, from a couple of weeks ago (it has the timestamp written by mysqldump). How did that end up in my log file?

The only recent changes I can think of, other than minor changes to my PHP application code, are that I moved from a 4 GB ram VPS to a 2 GB, and may have been moved to a different physical machine.

Any ideas what might be going on here?

share|improve this question
    
If this was a local machine, the first thing I'd do is a RAM test. If you can, get your provider to move you to a different physical machine, or to do a RAM test themselves. –  Gilles May 9 '11 at 18:37
    
It's a VPS. I am wondering about the hardware, too... –  Mark Snidovich May 9 '11 at 19:36
1  
I've had similar problems on a VPS. Even though the operator never admit it, I think it was caused by hardware problems on a physical machine. –  Viktor Stískala May 9 '11 at 23:19
    
I've been advised by the VPS vendor the problem might be their kernel, so I'm switching that. Thanks to everyone who pondered this and hope I'm not back here in a couple days with more stories of woe! –  Mark Snidovich May 10 '11 at 3:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.