Re: Optimal configuration for server

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Luiz Felipph <luizfelipph(at)gmail(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Optimal configuration for server
Date: 2022-03-08 06:44:55
Message-ID: 20220308064455.GT27651@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message aditya desai 2022-03-08 13:06:17 Re: Any way to speed up INSERT INTO
Previous Message Ranier Vilela 2022-03-07 22:28:13 Re: Optimal configuration for server