Re: Write workload is causing severe slowdown in Production - Mailing list pgsql-performance

From Mark Kirkwood
Subject Re: Write workload is causing severe slowdown in Production
Date
Msg-id 4F6BBF15.8040107@catalyst.net.nz
Whole thread Raw
In response to Write workload is causing severe slowdown in Production  ("Gnanakumar" <gnanam@zoniac.com>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Write workload is causing severe slowdown in Production
Next
From: Sebastian Melchior
Date:
Subject: Sudden Query slowdown on our Postgresql Server