Skip site navigation (1) Skip section navigation (2)

Re: Memory context usage

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Adriano Lange <alange0001(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Memory context usage
Date: 2009-08-28 08:18:13
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Fri, 28 Aug 2009, Tom Lane wrote:

> MemoryContextStats() might help.  It just dumps the info to stderr
> though.

Which means it ends up in the database log files in the common 
configuration where where the database's stderr is redirected to there. 
I even script running this regularly against stuff I'm suspicious of, 
using something like this passed the PID of the process I want to watch:

gdb -p $1 <<EOF
p MemoryContextStats(TopMemoryContext)

* Greg Smith gsmith(at)gregsmith(dot)com Baltimore, MD

In response to


pgsql-hackers by date

Next:From: Paul MatthewsDate: 2009-08-28 08:53:24
Subject: phypot - Pygmy Hippotause ?
Previous:From: Greg SmithDate: 2009-08-28 06:35:21
Subject: Re: 8.5 release timetable, again

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group