From: Darren Reed <darrenr@fastmail.net>
To: Filip Svendsen <fs@basepointmedia.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Koczan <pjkoczan@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Bus error in postgres 8.3
Date: Fri, 02 May 2008 16:59:29 +0800
Message-ID: <481AD7F1.3030708@fastmail.net> (raw)
In-Reply-To: <a44f084b0805010122i34de356aneebc3698917b74f0@mail.gmail.com>
References: <4544e0330804282205odfcac5al6bca78bd27c8751b@mail.gmail.com>
<25410.1209448864@sss.pgh.pa.us>
<a44f084b0805010122i34de356aneebc3698917b74f0@mail.gmail.com>
Filip Svendsen wrote:
> On Tue, Apr 29, 2008 at 8:01 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
>> "Peter Koczan" <pjkoczan@gmail.com> writes:
>> > I'm going to try to force a crash on my test server to see if I can
>> > find out anything more. Does anyone know how to get useful debugging
>> > info at the time of the crash? I don't think I have things set to dump
>> > core anywhere, but that and/or stack traces would be nice (especially
>> > for child processes).
>>
>> Make sure the postmaster is started under ulimit -c unlimited.
>> On a depressingly large fraction of modern platforms, daemons are
>> started with ulimit -c 0 by default :-(. Try putting "ulimit -c unlimited"
>> into your PG init script and restarting.
>>
>> regards, tom lane
>>
>
> Do you think a too low limit on user processes could be causing the problem?
>
> We have had similar crashes (server process terminated with Bus
> Error). This is running 8.2.5 on OS X (Tiger, intel), with about
> 130-140 connections, but the process count limit is 1000. Any reason
> why the process limit should be vastly higher than the number of
> connections?
>
"ulimit -c unlimited" sets the core dump size to be unlimited, not the
connection count.
That would be related to "ulimit -n" (descriptor count.)
Darren
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: darrenr@fastmail.net, fs@basepointmedia.com, tgl@sss.pgh.pa.us, pjkoczan@gmail.com
Subject: Re: Bus error in postgres 8.3
In-Reply-To: <481AD7F1.3030708@fastmail.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