public inbox for [email protected]  
help / color / mirror / Atom feed
From: 이상원 <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: Connection Timeout Issue due to intermittent non-response of Postgre database
Date: Mon, 6 Nov 2023 09:45:00 +0900
Message-ID: <CALFNBwc86ueiFq528jmeEMNkK0mearWMB3NaaY_5PdYWSxdpmQ@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CALFNBwepVWW6esjue4Eu9_EJ2tnA7KiSzt0ftAiivXiRGj87JQ@mail.gmail.com>
	<[email protected]>

Thanks, I'll check it out. then, I will update to all.

2023년 11월 5일 (일) 오전 12:33, Tom Lane <[email protected]>님이 작성:

> =?UTF-8?B?7J207IOB7JuQ?= <[email protected]> writes:
> > The Postgre database does not respond intermittently, causing a
> connection
> > timeout in the Spring Framework. There is no regularity in the occurrence
> > of connection timeouts and they do not repeat continuously. Not easy to
> > track.
>
> I'd try turning on statement logging, and maybe also statement duration
> logging, and then matching up the times of observed client-side outages
> with what's happening according to the postmaster log.  Connection
> and disconnection logging might be useful too.
>
> A likely bet about the root cause is an unreasonably short connection
> timeout in some network infrastructure between your client and the
> database server.  That would manifest as both sides reporting that the
> other side disconnected (not necessarily at the same time, but for the
> same connection).  If so, it could likely be cured by adjusting the
> database's TCP keepalive settings.  But you ought to gather data
> first.
>
>                         regards, tom lane
>


view thread (4+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Connection Timeout Issue due to intermittent non-response of Postgre database
  In-Reply-To: <CALFNBwc86ueiFq528jmeEMNkK0mearWMB3NaaY_5PdYWSxdpmQ@mail.gmail.com>

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

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