Re: BUG #16659: postgresql leaks memory or do not limit its usage - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16659: postgresql leaks memory or do not limit its usage
Date
Msg-id 2233626.1602090394@sss.pgh.pa.us
Whole thread Raw
In response to BUG #16659: postgresql leaks memory or do not limit its usage  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #16659: postgresql leaks memory or do not limit its usage  (Alexander Zubkov <zubkov318@gmail.com>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I migrated a database from postgresql 10.14 in a container to
> postgres:13-alpine in docker. After a migration I see that postgresql
> processes alltogether eat memory without limits until OOM comes.

Not much to go on here.  If you have debug symbols available, maybe
you could attach gdb to one of the bloated processes and do

call MemoryContextStats(TopMemoryContext)

which'd produce a memory usage report on the server's stderr.

Another idea is to start the server under a smaller ulimit,
in hopes of getting ENOMEM failures before reaching the point
of triggering OOM kills.  That would also result in memory
usage reports, so you could get one even if it's a non-debug
build.

Otherwise, we'll have to ask for a reproducible test case ...

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #16655: pg_dump segfault when excluding postgis table
Next
From: Martin Visser
Date:
Subject: WIDTH_BUCKET inconsistency