From: Mendola Gaetano <mendola@bigfoot.com>
To: pgsql-admin@postgresql.org
Cc: \"Arthur Ward\" <award@dominionsciences.com>
Subject: Re: syslog enabled causes random hangs?
Date: Wed, 30 Jul 2003 01:07:02 +0200
Message-ID: <006b01c35626$1f15e360$10d4a8c0@mm.eutelsat.org> (raw)
References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com>
""Arthur Ward"" <award@dominionsciences.com> writes:
> I'm encountering strange hangs in postgresql backends at random moments.
> They seem to be associated with attempts to issue log entries via syslog.
> I have run backtraces on the hung backends a few times, and they routinely
> trace into system libraries where it looks like a stuck syslog call. So
> far, I haven't had this problem with any other apps, so I'm thinking it's
> a condition being aggravated by Postgres.
>
> The machines I'm seeing this on are RedHat 8 and Gentoo Linux machines
> (x86). We're running compiled-from-source 7.3.3 on both machines (by hand
> on the RH8 machine, and built by Gentoo's package manager, because it's a
> build-from-source distribution). On my Gentoo test boxes, it happens
> occasionally using syslog-ng 1.6.0_rc3 and glibc 2.3.2-r1. On the RedHat 8
> machine, it's sysklogd-1.4.1-10 and "glibc-devel-2.3.2-4.80.6". I switched
> to not using syslog on the RH8 machine because it was hanging backends
> quite regularly, and that's rather bad in production. :)
>
> Has anyone else had problems using the syslog option?
>
> I need to rebuild PostgreSQL on my test machine so I'll have unstripped
> binaries, but once that's done, I'll bring on the stack traces when I get
> another hang.
Try to put a "-" before the name of your log file, this say to syslogd to
not
flush each message on the disk, so your line should appear somethink like:
LOCAL0.* -/var/log/postgresql.log
Regards
Gaetano Mendola
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: mendola@bigfoot.com, award@dominionsciences.com
Subject: Re: syslog enabled causes random hangs?
In-Reply-To: <006b01c35626$1f15e360$10d4a8c0@mm.eutelsat.org>
References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> <006b01c35626$1f15e360$10d4a8c0@mm.eutelsat.org>
* 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