Linode crashing periodically
This last crash, I opened a LISH console and managed to capture the following output. I could not figure out how to scroll back in the text, but it looks like a Kernel oops to me. Unfortunately this excerpt is probably not all that useful, since it doesn't show the top of the call stack. I did not find this in any logs either after rebooting the system. The system is running Ubuntu 11.04.
Any help would be much appreciated!
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
[
5 Replies
> Which kernel were you running?
Its running kernel 2.6.39.1-linode34 which I see is deprecated. I forgot that the Kernel is selected from the configuration, rather than the distribution. So this may be the kernel I had from the beginning.
I'm going to go ahead and try the latest kernel and will also look into memory usage. Its probably related to apache. PHP can consume a lot of memory on one of the Drupal based websites I have, so it may be that someone is spidering that site and causing the crash.
Thanks for the tips.
@elementgreen:
Its probably related to apache.
Yes, Apache can be quite a hog. Try using nginx.
I used to use Apache until some time last year, when it started taking about 40 seconds to load a page, which was ridiculous and finally convinced me to switch. I've had no problems at all with nginx.
@Keiji:
@elementgreen:Its probably related to apache.
Yes, Apache can be quite a hog.Try to change your configuration off defaults and use mpm-worker instead of mpm-prefork, (and php-fastcgi instead of mod_php), like everyone should.
Fixed that for you.
It's totally not fair to compare "out of the box" (and definitely idiotic) config of Apache, with mpm-prefork, mod_php, and huge clients settings with tweaked (and you NEED to tweak it to make it work at all) nginx with its non-forking engine, and PHP as fastcgi.
When you'll set your Apache to use mpm-worker (or the poll-based one that's even more like Nginx) engine, and set up PHP as external fastcgi process (like you HAVE to do with nginx), the performance difference is much smaller. And the supportability and flexibility is much higher.