From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Joe Abbate <jma@freedomcircle.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: checkpointer and other server processes crashing
Date: Mon, 15 Feb 2021 15:34:30 -0800
Message-ID: <0c2b4473-3b73-857d-342e-acffa900c6db@aklaver.com> (raw)
In-Reply-To: <90ca83ee-7add-2980-6962-f998336dbf5d@freedomcircle.com>
References: <e426330d-bdbb-98d8-5e74-09998258503d@freedomcircle.com>
<babecf51-171f-1f7f-7ee0-5cf20bb1815f@aklaver.com>
<90ca83ee-7add-2980-6962-f998336dbf5d@freedomcircle.com>
On 2/15/21 1:50 PM, Joe Abbate wrote:
> On 15/2/21 16:29, Adrian Klaver wrote:
>> On 2/15/21 1:15 PM, Joe Abbate wrote:
>>> We've been experiencing PG server process crashes about every other
>>> week on a mostly read only website (except for a single insert/update
>>> on page access). Typical log entries look like
>>>
>>> LOG: checkpointer process (PID 11200) was terminated by signal 9:
>>> Killed
>>> LOG: terminating any other active server processes
>>
>> Have you looked at the system logs to see if the OOM killer is involved?
>
> No, I hadn't, but now I see that of the past three crashes, four
> postgres processes were OOM victims. I guess I have to read the OOM
> articles I've been skipping (read one a long time ago). If you have any
> specific suggestions, let me know.
There are suggestions here:
https://www.postgresql.org/docs/12/kernel-resources.html#LINUX-MEMORY-OVERCOMMIT
It probably would not hurt to figure why this seemed to happen with the
Python -> Go switch. Even if you can get the OOM not to kick in, the
fact that it was kicking in would indicate you now have memory hungry
processes that did not exist before. The questions being is this
strictly due to the language/framework change, natural growth of data
set being worked with, or something else?
>
> Thanks Adrian,
>
> Joe
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, jma@freedomcircle.com
Subject: Re: checkpointer and other server processes crashing
In-Reply-To: <0c2b4473-3b73-857d-342e-acffa900c6db@aklaver.com>
References: <e426330d-bdbb-98d8-5e74-09998258503d@freedomcircle.com> <babecf51-171f-1f7f-7ee0-5cf20bb1815f@aklaver.com> <90ca83ee-7add-2980-6962-f998336dbf5d@freedomcircle.com> <0c2b4473-3b73-857d-342e-acffa900c6db@aklaver.com>
* 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