Re: BUG #17602: Query backend process killed because it uses up all memory. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17602: Query backend process killed because it uses up all memory.
Date
Msg-id 3727393.1661886091@sss.pgh.pa.us
Whole thread Raw
In response to BUG #17602: Query backend process killed because it uses up all memory.  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I'm writing to seek for generic help on trouble shooting bugs related to
> query backend process killed because of memory exhaust on this single query
> process.

Try starting the server under a restrictive ulimit, so that it will
get ENOMEM failure before it bloats to the point of receiving an
OOM kill.  Aside from being more friendly to other server processes,
this should result in getting a memory consumption map dumped to
postmaster stderr when the failure is hit.  Seeing which context
is getting bloated would be pretty useful information.

On Linux I believe "ulimit -v" is the most appropriate setting to
change.

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17602: Query backend process killed because it uses up all memory.
Next
From: John Naylor
Date:
Subject: Re: fetching bytea (blob) data of 850 MB from psql client failed