pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: pgsql-performance@postgresql.org
Subject: Re: Write workload is causing severe slowdown in Production
Date: Fri, 23 Mar 2012 13:08:53 +1300
Message-ID: <4F6BBF15.8040107@catalyst.net.nz> (raw)
In-Reply-To: <006301cd07fd$358ebe40$a0ac3ac0$@com>
References: <006301cd07fd$358ebe40$a0ac3ac0$@com>

On 22/03/12 20:27, Gnanakumar wrote:
>
> The issue that we're facing currently in our Production server is, whenever
> this "newly" developed Java program is started/run, then immediately the
> entire web application becomes very slow in response.  At this time, I could
> also see from the output of " iostat -tx" that "%util" is even crossing more
> than 80%.  So, what I could infer here based on my knowledge is, this is
> creating heavy IO traffic because of write operation.  Since it was entirely
> slowing down web application, we've temporarily stopped running this
> standalone application.

I'd recommend taking a hard took at what the Java app is doing. You 
might be able to get useful data by adding:

log_min_duration_statement = 10000 # queries taking longer than 10 sec

into your postgresql.conf. I'd *guess* that locking is not the issue - 
as that is unlikely to cause high IO load (altho checking for lots of 
locks with granted= f in pg_locks might be worthwhile just to rule it out).

You could also try running the Java app in one of your development 
environments to see if you can provoke high load behaviour in a more 
easily studied environment.

regards

Mark



view thread (16+ messages)  latest in thread

Message-ID: <4F6BBF15.8040107@catalyst.net.nz>
Permalink:  ../4F6BBF15.8040107@catalyst.net.nz/
Also on:    postgresql.org/message-id/4F6BBF15.8040107@catalyst.net.nz

 · 

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: mark.kirkwood@catalyst.net.nz
  Subject: Re: Write workload is causing severe slowdown in Production
  In-Reply-To: <4F6BBF15.8040107@catalyst.net.nz>

* 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