Re: Optimal configuration for server

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: Optimal configuration for server
Дата
Msg-id 20220308064455.GT27651@telsasoft.com
обсуждение исходный текст
Ответ на Optimal configuration for server  (Luiz Felipph <luizfelipph@gmail.com>)
Ответы Re: Optimal configuration for server
Список pgsql-performance
On Mon, Mar 07, 2022 at 08:51:24AM -0300, Luiz Felipph wrote:
> My current problem:
> 
> under heavyload, i'm getting "connection closed" on the application
> level(java-jdbc, jboss ds)

Could you check whether the server is crashing ?

If you run "ps -fu postgres", you can compare the start time ("STIME") of the
postmaster parent process with that of the persistent, auxilliary, child
processes like the checkpointer.  If there was a crash, the checkpointer will
have restarted more recently than the parent process.

The SQL version of that is like:
SELECT date_trunc('second', pg_postmaster_start_time() - backend_start) FROM pg_stat_activity ORDER BY 1 DESC LIMIT 1;

-- 
Justin



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

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Re: Optimal configuration for server
Следующее
От: aditya desai
Дата:
Сообщение: Re: Any way to speed up INSERT INTO