pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Molesworth <tom@audioboundary.com>
To: pgsql-performance@postgresql.org
Subject: Re: sudden spurt in swap utilization (was:cpu bound 	postgresql setup.)
Date: Fri, 25 Jun 2010 17:39:05 +0100
Message-ID: <4C24DBA9.7030303@audioboundary.com> (raw)
In-Reply-To: <AANLkTikJEyqi_8WRI6FjH3OBnnIj4SV9EbTBLl2EGCZw@mail.gmail.com>
References: <AANLkTinDBPQL-SjLaCr7AVgzouWbRrjwA6MAgBih_ciy@mail.gmail.com>
	<4C2492F9.2020706@gmail.com>
	<AANLkTikUDoXMF-7N7csuYPWIzn9gSKm_g4NnmjvAYu8N@mail.gmail.com>
	<4C2477A20200002500032B03@gw.wicourts.gov>
	<AANLkTimPhkr2nvuLo-fpBfUdN08KsDFTwzL9ubJP5VG2@mail.gmail.com>
	<AANLkTikJEyqi_8WRI6FjH3OBnnIj4SV9EbTBLl2EGCZw@mail.gmail.com>

On 25/06/10 16:59, Rajesh Kumar Mallah wrote:
> when i reduce max_connections i start getting errors, i will see again 
> concurrent connections
> during business hours. lot of our connections are in <IDLE in 
> transaction state> during business
> this peculiar  behavior of  mod_perl servers have been discussed in 
> past i think. dont' remember
> if there was any resolution.

If connections spend any significant amount of time in <IDLE in 
transaction> state, that might indicate you're not committing/rolling 
back after running queries - can you show an example of the code you're 
using?

e.g. something like my $dbh = DBI->connect(...); my $sth = 
$dbh->prepare(q{select ... }); $sth->fetchall_arrayref; $sth->rollback;

Tom




view thread (15+ messages)  latest in thread

Message-ID: <4C24DBA9.7030303@audioboundary.com>
Permalink:  ../4C24DBA9.7030303@audioboundary.com/
Also on:    postgresql.org/message-id/4C24DBA9.7030303@audioboundary.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: tom@audioboundary.com
  Subject: Re: sudden spurt in swap utilization (was:cpu bound 	postgresql setup.)
  In-Reply-To: <4C24DBA9.7030303@audioboundary.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