Re: db size growing out of control when using clustered Jackrabbit

From: Gary Webster <webster(at)lexmark(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Cc: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Subject: Re: db size growing out of control when using clustered Jackrabbit
Date: 2012-07-26 19:31:48
Message-ID: CAEHjwJ44sJqAGpZeZZX+h=xLWw3Pi94AveX2DcNH3qEci=7eBA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, Jul 25, 2012 at 2:44 PM, Joshua D. Drake <jd(at)commandprompt(dot)com>wrote:

>
> On 07/25/2012 11:37 AM, Gary Webster wrote:
>
> This is a cluster issue, not a database issue. So if you have an
>> idnle in transaction, then it is affecting your JCR schema as well.
>>
>> OK, how do I track/debug/stop the "idle in transaction"s ?
>>
>
> Well idle in transaction is ALWAYS a code issue. You have code that is
> executing that is starting a transaction, leaving the connection open while
> not closing (committing/rollingback) the transaction.
>
> You could turn on query logging and make sure pid and timestamp is in the
> log_line_prefix. They you can see what pids are idle in transaction and
> trace to what the last query was.
>
> OK, I set "log_statement = "all""
The log grew to 1GB in ~minute! It is dominated by this one statement,
which occurs every ~1.4 sec:
"update WS_BUNDLE set BUNDLE_DATA = $1 where NODE_ID_HI = $2 and NODE_ID_LO
= $3"
parameter $1 is hex, over 6million characters long !! Surely this is the
root of my problem.

o you mean autovacuum, or something else?
>
>>
>>
>> I mean autovacuum.
>>
>> I was hoping to find more of a 'root cause' (eg. jackrabbit config) for
>> this issue.
>> I can't believe that this table is supposed to be getting so big, to
>> even require much vacuuming.
>>
>
> Any update/delete to that table is going to cause bloat, autovacuum cleans
> that up. If it can. If it can't, it will just continously grow.
>
>
>
> Sincerely,
>
> jD
>
>
> --
> Command Prompt, Inc. - http://www.commandprompt.com/
> PostgreSQL Support, Training, Professional Services and Development
> High Availability, Oracle Conversion, Postgres-XC
> @cmdpromptinc - 509-416-6579
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2012-07-26 20:05:19 Re: db size growing out of control when using clustered Jackrabbit
Previous Message Bruce Momjian 2012-07-26 18:30:58 Re: could not find function "LWGEOM_distance_ellipsoid_point"