pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Moore <martin.moore@avbrief.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Replication causing publisher node to use excessive cpu over time
Date: Mon, 04 Dec 2017 13:00:16 +0000
Message-ID: <F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.com> (raw)
In-Reply-To: <CAB7nPqRWPmA+xs2FPc5Jpy4ZX3iAzirWznA69F_ZcROEoGa9rA@mail.gmail.com>
References: <315C591C-F609-4519-8C68-011E34B69CFB@avbrief.com>
	<CAB7nPqRWPmA+xs2FPc5Jpy4ZX3iAzirWznA69F_ZcROEoGa9rA@mail.gmail.com>

OK, have installed perf and will report back when the problem gets noticeable.

Martin.


On 04/12/2017, 12:40, "Michael Paquier" <michael.paquier@gmail.com> wrote:

    On Mon, Dec 4, 2017 at 9:03 PM, Martin Moore <martin.moore@avbrief.com> wrote:
    > After a few days, it’s noticeable that the Postgres on the publisher node is constantly using a lot of cpu (26% today) and having a big impact on the system performance even when doing very little. Logging on to the subscriber and removing the subscription sees this value drop to an expect small value.
    
    When debugging such issues, it is critical to know where the resources
    are spent, and you are giving no information that can help in
    understanding where CPU cycles are spent. You can do such measurements
    by using perf for example.
    -- 
    Michael
    






view thread (3+ messages)

Message-ID: <F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.com>
Permalink:  ../F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.com/
Also on:    postgresql.org/message-id/F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: martin.moore@avbrief.com
  Subject: Re: Replication causing publisher node to use excessive cpu over time
  In-Reply-To: <F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.com>
  References: <315C591C-F609-4519-8C68-011E34B69CFB@avbrief.com> <CAB7nPqRWPmA+xs2FPc5Jpy4ZX3iAzirWznA69F_ZcROEoGa9rA@mail.gmail.com> <F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.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