pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Luiz Felipph <luizfelipph@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Optimal configuration for server
Date: Tue, 8 Mar 2022 00:44:55 -0600
Message-ID: <20220308064455.GT27651@telsasoft.com> (raw)
In-Reply-To: <CABCV0czrGy1XfyZ-tXKH=Xts+xo6vvvYnxN4Eb7Q136zYAk9sA@mail.gmail.com>
References: <CABCV0czrGy1XfyZ-tXKH=Xts+xo6vvvYnxN4Eb7Q136zYAk9sA@mail.gmail.com>

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





view thread (10+ messages)  latest in thread

Message-ID: <20220308064455.GT27651@telsasoft.com>
Permalink:  ../20220308064455.GT27651@telsasoft.com/
Also on:    postgresql.org/message-id/20220308064455.GT27651@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, luizfelipph@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Optimal configuration for server
  In-Reply-To: <20220308064455.GT27651@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox