From: Tom Lane <tgl@sss.pgh.pa.us>
To: francis picabia <fpicabia@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: How to log 'user time' in postgres logs
Date: Wed, 28 Aug 2019 15:51:21 -0400
Message-ID: <29679.1567021881@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+AKB6FETcp8CMZxJ0Q-PgvKxYtU2BVQ=QvDNQ9dr05dhyoTwQ@mail.gmail.com>
References: <CA+AKB6Gwbfjc3LgMDYTRRfgeWC_m=q8Gstw8=oX6bSOX3TeDaQ@mail.gmail.com>
<94ac4f4a-452e-02cd-a91c-4db3afbd4a2b@aklaver.com>
<CA+AKB6FETcp8CMZxJ0Q-PgvKxYtU2BVQ=QvDNQ9dr05dhyoTwQ@mail.gmail.com>
francis picabia <fpicabia@gmail.com> writes:
> The server was running Moodle. The slow load time was noticed when loading
> a quiz containing
> multiple images. All Apache log results showed a 6 seconds or a multiple
> of 6 for how long
> it took to retrieve each image.
> Interestingly, if I did a wget, on the server, to the image link (which was
> processed through a pluginfile.php URL)
> even the HTML page returned of "please login first" took consistently 6
> seconds. Never 2, 3, 4, 5 or 7, 8, 9...
> So whatever was wrong, there was a 6 second penalty for this.
Hmm ... some weird DNS behavior, perhaps? That is one way to explain
a pattern like this. How long does it take to "dig" or "nslookup"
your server name?
regards, tom lane
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: tgl@sss.pgh.pa.us, fpicabia@gmail.com
Subject: Re: How to log 'user time' in postgres logs
In-Reply-To: <29679.1567021881@sss.pgh.pa.us>
References: <CA+AKB6Gwbfjc3LgMDYTRRfgeWC_m=q8Gstw8=oX6bSOX3TeDaQ@mail.gmail.com> <94ac4f4a-452e-02cd-a91c-4db3afbd4a2b@aklaver.com> <CA+AKB6FETcp8CMZxJ0Q-PgvKxYtU2BVQ=QvDNQ9dr05dhyoTwQ@mail.gmail.com> <29679.1567021881@sss.pgh.pa.us>
* 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