pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Biagioni <andrew.biagioni@e-greek.net>
To: pgsql-admin@postgresql.org
Subject: Spontaneous PostgreSQL Server Reboot?
Date: Mon, 29 Mar 2004 23:02:52 -0500
Message-ID: <4068F16C.6050800@e-greek.net> (raw)

Help!

I'm having a severe problem with my production PostgreSQL servers, and 
I'm running out of ideas as to what could be the problem.

On three different machines running the same PostgreSQL version (7.3.5) 
on Linux and almost identical databases, I have been plagued by 
occasional, unexplainable (to me) reboots of the computer.

On the first two machines it was clearly connected to running a very 
complex query (multi-hour processing time);  on the third, I could find 
no such correlation.  Please note that only one machine was Production 
at any one time;  the problem never occurred with the Development 
servers (equivalent configuration).  This in and of itself may hint to a 
threading issue (the DB is serving web servers, plus the occasional 
maintenance cron job - no cron job running when the last reboot occurred).

When the last reboot occurred (this past Friday evening), I scoured all 
logs for any information;  the only log that shows any activity in 
within 5 minutes of the restart is $PG_DATA/serverlog:

2004-03-26 21:46:59 [10534]  LOG:  query: SELECT  v.* FROM [...]
2004-03-26 21:46:59 [10534]  LOG:  duration: 0.049330 sec

The machine restarted around 21:50 (based on syslog):

Mar 26 21:50:33 prod-db-2-1 syslogd 1.4.1#10: restart.

I especially found no panics, errors, warnings, ...  The machine is used 
only as a DB server, nothing else running (not even a mail server).  I'm 
running out of things to look for!

I'm running PostgreSQL 7.3.5 on Linux (pentium machines), configured as 
follows:
1. Red Hat 7.3 with 120 GB HDD and 1 GB RAM;
2. Red Hat 7.3 with 80 GB HDD and 512 MB RAM;
3. Debian with a 2.2.20 kernel, 5.5 GB HDD and 384 MB RAM.  This is the 
latest one in use.

Note that even the 5.5 GB machine has over 1 GB spare on the 
/usr/local/pgsql/ partition.

Thanks for any and all help!

		Andrew Biagioni




view thread (10+ messages)  latest in thread

Message-ID: <4068F16C.6050800@e-greek.net>
Permalink:  ../4068F16C.6050800@e-greek.net/
Also on:    postgresql.org/message-id/4068F16C.6050800@e-greek.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: andrew.biagioni@e-greek.net
  Subject: Re: Spontaneous PostgreSQL Server Reboot?
  In-Reply-To: <4068F16C.6050800@e-greek.net>
  References: <4068F16C.6050800@e-greek.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox