Computing.Net > Forums > Linux > Redhat linux crashes every 25 days

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Redhat linux crashes every 25 days

Reply to Message Icon

Name: ralagar_raja
Date: March 16, 2004 at 07:22:32 Pacific
OS: Redhat LInux 8.0
CPU/Ram: 2 GB
Comment:

Hi,


We have a dedicated web server running on Redhat linux 8.0. The installed applications are Apache 2.0.47,Tomcat 4.1.27,Mysql-4.0.13,with mod_jk2 connectors.


After a period of time (approximately 20 or 25 days), THE ENTIRE SERVER CRASHES. Tomcat and apache fail to serve and we are getting 500 internal server errors. We are also unable to login to our server through SSH or Telnet at that time. Just incase if we are able to login we do not get # prompt.


After hard reboot of the server every thing works fine. We are not getting any clues regarding what went wrong in any of the error logs.

We had checked the server 2 hours before it crashed, the memory utilisation was low, all services were running fine and there was no load on the server also during that period. This is the second time the server has crashed like this in a time gap of 45 days.

Why the server is crashing like this periodically?

How to log messages so that we will know what went wrong when the server crashes?

How to configure the server to send alert messages on critical conditions like low memory, running service failures, etc?


Regards.,
Raja



Sponsored Link
Ads by Google

Response Number 1
Name: taurus
Date: March 16, 2004 at 07:38:20 Pacific
Reply:

Have you at least checked to see your /tmp is not filling up??? That would be my first guess but you need to look at your /var/log/messages to see what kind of error messages you get before it crashes...

taurus


0

Response Number 2
Name: heart_debian
Date: March 16, 2004 at 09:09:53 Pacific
Reply:

Bah, I thought you people running servers atleast had the knowledge to check your log files!


There are 10 kinds of people, those who count in binary and those who don't.


0

Response Number 3
Name: anonproxy
Date: March 16, 2004 at 09:16:06 Pacific
Reply:

To diagnose a problem, you need all your logs and non-default configuration settings.

There are several types of logs you should have running:

1) Firewall
2) Server (Apache)
3) System (syslog)

Your firewall logs are usually easy to check. Make sure nothing strange or excessive happens (<2 hours) before the server dies. Your server logs are the most help here. Apache has a module configured for logging (error and access), which is probably going somewhere (find error_log, maybe in /var/log/apache).

You can also pipe these logs to other processes and files.

Don't forget you can add conditionals to your logs (to automatically edit out verbose information) and rotate your logs to keep them smaller and easier to manage.

Some errors are also sent to syslogd. System-wide issues will be reported here.

A simple way to get an alert email is with an outside daemon monitoring the service. You could write a script to attempt to connect to Apache every N minutes, fail three times, and then email (this can be configured many ways, and even run on another host). Check online repositories for some scripts. You can also check for various monitoring programs (freshmeat.net, sourceforge.net, etc). There are plenty.

It is a good idea to move your entire logging to another, small server. 500MHz< with a new hard drive would work fine.



0

Response Number 4
Name: ralagar_raja
Date: March 16, 2004 at 23:54:01 Pacific
Reply:

Hi .,

thanks for your information. we check with the file /var/log/messages ,and apache and tomcat error log. we could not find any errors on that file also.

Raja


0

Response Number 5
Name: anonproxy
Date: March 17, 2004 at 16:30:12 Pacific
Reply:

Errors do not always produce error messages.

Check for patches to the software you are using (All the software you listed have new builds available - MySQL, Apache, and Tomcat) and look at the cronjobs to make sure nothing is running regularly that you don't know about.

Look at the hardware. Check the integrity of your RAM (via memtest86), temperature of the machine, and power supply.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon

So you wanna dual boot...... Suse pro 9.0



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Redhat linux crashes every 25 days

Downloading using Redhat Linux 6.2 Gnome www.computing.net/answers/linux/downloading-using-redhat-linux-62-gnome/4385.html

redhat linux 7 harddisk busy error www.computing.net/answers/linux/redhat-linux-7-harddisk-busy-error/3971.html

Redhat Linux + mulitple partitions www.computing.net/answers/linux/redhat-linux-mulitple-partitions/14873.html