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

My webserver is giving me some problems in the last two months, it is freezing randomly, one time per day, and maybe sometimes it works fine for more days but then it goes down again.

The server runs one website, and it also has some cron jobs to send email notifications, generate sitemap, and generate website statisthics. The entire project uses YiiFramework and we are running php scripts from console, as I said, configured as cron jobs.

The sitemap and stathistics commands use a lot of resources, but they are configured to be done step by step, so the first cron job generates 10.000 links, the second generates another 10.000 and so on until it finishes. Same with the stathistics command, it does a lot of checks inserts on the MySQL database.

So what I want to find out if are we dealing is caused by bad written php code or sql commands, or is it something else, like a bug in a service or a hardware problem.

You can see here the logs of the server:

/var/log/messages just before I have restarted the server:

http://pastebin.com/vgBnJjj6

Console messages that started to come in when the server started to hangup:

BUG: soft lockup - CPU#7 stuck for 10s! [php:756]

Pid: 756, comm: php Not tainted 2.6.18-194.26.1.el5 #1

More here: http://pastebin.com/gsbK8JdN (1)

Someone who already saw the messages suggested that it could be bad hardware CPU/RAM, but the hosting company won't change anything saying their server is ok, and that I should reinstall the OS.

We are talking about a dedicated server with 12 CPU and 16GB of RAM. Let me know if you need me to provide more info about the hardware.

Thanks in advance!

share|improve this question

1 Answer 1

Hmm, I believe I this bug was fixed prior to 2.6.18-194... Is this "dedicated" server in a virtual environment?

Sounds like an overcommit issue of either CPU or RAM. What is the server load like during these crashes?

share|improve this answer
    
Well the hosting company says it is dedicated, their product page is here: bit.ly/oYnBuS and here you can see the server load just when it happend: i55.tinypic.com/282oxas.png –  Alexandru Trandafir Catalin Jul 21 '11 at 15:21

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.