Re: checkpointer and other server processes crashing

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Joe Abbate <jma(at)freedomcircle(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: checkpointer and other server processes crashing
Date: 2021-02-15 23:34:30
Message-ID: 0c2b4473-3b73-857d-342e-acffa900c6db@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message H 2021-02-16 01:25:42 Issue initializing postgreSQL 13 on CentOS 7 docker
Previous Message RaviKrishna 2021-02-15 22:47:31 Re: How to post to this mailing list from a web based interface