Use a signal to trigger a memory context dump?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Use a signal to trigger a memory context dump?
Дата
Msg-id 20140623101501.GN16260@awork2.anarazel.de
обсуждение исходный текст
Ответы Re: Use a signal to trigger a memory context dump?  (Stephen Frost <sfrost@snowman.net>)
Re: Use a signal to trigger a memory context dump?  ("MauMau" <maumau307@gmail.com>)
Re: Use a signal to trigger a memory context dump?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I wonder if it'd make sense to allow a signal to trigger a memory
context dump? I and others more than once had the need to examine memory
usage on production systems and using gdb isn't always realistic.
I wonder if we could install a signal handler for some unused signal
(e.g. SIGPWR) to dump memory.
I'd also considered adding a SQL function that uses the SIGUSR1 signal
multiplexing for the purpose but that's not necessarily nice if you have
to investigate while SQL access isn't yet possible. There's also the
problem that not all possibly interesting processes use the sigusr1
signal multiplexing.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: crash with assertions and WAL_DEBUG
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pgaudit - an auditing extension for PostgreSQL