pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Nolan <nolan@gw.tssi.com>
To: chris.kratz@vistashare.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Long running queries degrade performance
Date: Fri, 16 Apr 2004 15:25:12 -0500 (CDT)
Message-ID: <200404162025.i3GKPDe4013710@gw.tssi.com> (raw)
In-Reply-To: <200404161356.20210.chris.kratz@vistashare.com>

> Fairly sure, when it is happening, postgres usually is taking up the top slots 
> for cpu usage as reported by top.  Perhaps there is a better way to monitor 
> this?

Given the intermittent nature of the problem and its relative brevity 
(5-10 seconds), I don't know whether top offers the granularity needed to
locate the bottleneck.

> likely you have a situation where something else is happening which blocks 
> the current thread.  

It happens on my development system, and I'm the only one on it.  I know
I've seen it on the production server, but I think it is a bit more
common on the development server, though that may be a case of which system
I spend the most time on.  (Also, the production server is 1300 miles away
with a DSL connection, so I may just be seeing network delays some of
the time there.)

> Both of these were triggered by users double clicking links in our 
> web app and were fixed by a better implementation.  Perhaps something like 
> that is causing what you are seeing.

My web app traps double-clicks in javascript and ignores all but the first one.
That's because some of the users have mice that give double-clicks even
when they only want one click.
--
Mike Nolan



view thread (8+ messages)  latest in thread

Message-ID: <200404162025.i3GKPDe4013710@gw.tssi.com>
Permalink:  ../200404162025.i3GKPDe4013710@gw.tssi.com/
Also on:    postgresql.org/message-id/200404162025.i3GKPDe4013710@gw.tssi.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: nolan@gw.tssi.com, chris.kratz@vistashare.com
  Subject: Re: Long running queries degrade performance
  In-Reply-To: <200404162025.i3GKPDe4013710@gw.tssi.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