Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcxBD-0002Xn-AB for pgsql-admin@arkaria.postgresql.org; Tue, 19 Oct 2021 22:01:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mcxBB-0005Pz-JB for pgsql-admin@arkaria.postgresql.org; Tue, 19 Oct 2021 22:01:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcxBB-0005OD-9e for pgsql-admin@lists.postgresql.org; Tue, 19 Oct 2021 22:01:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcxB9-0003r4-1a for pgsql-admin@postgresql.org; Tue, 19 Oct 2021 22:01:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 19JM1mxp2009138; Tue, 19 Oct 2021 18:01:48 -0400 From: Tom Lane To: Wells Oliver cc: pgsql-admin Subject: Re: Understanding was terminated by signal 9: Killed In-reply-to: References: Comments: In-reply-to Wells Oliver message dated "Tue, 19 Oct 2021 14:42:15 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2009136.1634680908.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Oct 2021 18:01:48 -0400 Message-ID: <2009137.1634680908@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Wells Oliver writes: > In an RDS instance with 16GB RAM, I ran a long query which started by > setting temp_buffers to 16GB, so I think I plum ran out of memory, but c= an > anyone point me in a different direction if the following log messages > indicate something else is awry? Yeah, this: > 2021-10-19 21:10:37 UTC::@:[24752]:LOG: server process (PID 25813) was > terminated by signal 9: Killed almost certainly indicates the Linux OOM killer at work. If you were running your own system I'd point you to [1], but I doubt that RDS lets you put your hands on the relevant knobs. regards, tom lane [1] https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-ME= MORY-OVERCOMMIT