LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2015, 12:59 AM   #1
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Rep: Reputation: Disabled
server crash


Hey,

A webserver i run goes down at least once a week. The day it goes down isn't fixed, it usually was a Friday but it went down today, Thursday.

I'm sure it's not a hardware issue because I've moved this property across 3 servers in the past 12 months and they all experience this crash.

Server Config:
Plesk 12
Nginx
PHP-FPM
Percona 5.6

Intel Xeon E5-2620
32GB DDR4 ECC RAM
2 x 2TB 7200RPM HDD's


how can I monitor the server applications for anomalies to somehow diagnose why the crash occurs?
 
Old 09-18-2015, 05:00 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You need to monitor the system - try http://collectl.sourceforge.net/ which combines the capability of several std tools.

Have looked closely at the logs - exactly what sort of crash?
Off the top of my head, it sounds like either a memory leak or a runaway process filling the disk or swap space (anything in the logs about oom-killer ?)

Last edited by chrism01; 09-21-2015 at 06:27 AM. Reason: typo
 
Old 09-18-2015, 09:30 AM   #3
imadsani
Member
 
Registered: Aug 2013
Distribution: CentOS 6.5
Posts: 64

Original Poster
Rep: Reputation: Disabled
That's what I think is happening as well. I've tried looking at /var/log/messages but it doesn't report anything regarding the crash. Normal operation and then a void until the server reboots.

I don't have kvm access to the server so I don't even know where the server stands when it crashes.

The server crashes every week, the day sometimes varies and this usually occurs in off-peak hours. So traffic doesn't seem to be the trigger. Someone on the Odin forums pointed out that this may be because of Plesk's cron job, but I can't make heads or tails of how to identify which one it is.
 
Old 09-21-2015, 06:27 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You need to look at all the logs, not just the messages file.

You could just start with the basics - record the load avgs, mem usage and disk usage fairly frequently and either write to disk or email to yourself or scp to another system. (or some combination of thereof).

What sort of setup is it - real HW or a VM? Is it hosted somewhere or by a company you work for? Is it just a server at home?
 
Old 09-22-2015, 01:10 AM   #5
Elizine
Member
 
Registered: Aug 2015
Posts: 54
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by imadsani View Post
Hey,

A webserver i run goes down at least once a week. The day it goes down isn't fixed, it usually was a Friday but it went down today, Thursday.

I'm sure it's not a hardware issue because I've moved this property across 3 servers in the past 12 months and they all experience this crash.

Server Config:
Plesk 12
Nginx
PHP-FPM
Percona 5.6

Intel Xeon E5-2620
32GB DDR4 ECC RAM
2 x 2TB 7200RPM HDD's


how can I monitor the server applications for anomalies to somehow diagnose why the crash occurs?
Check you server logs and download zabbix - http://www.zabbix.com/ for monitoring your server.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Root server crash: hunting down the cause of the crash kikinovak Slackware 15 01-29-2014 04:22 PM
xmms crash xine crash mplayer crash paledread Linux - Software 9 03-09-2004 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration