Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 15F8414C2165 for ; Mon, 23 Jul 2012 18:40:37 -0300 (ADT) Received: from 30.55.colo.spiretech.net ([69.168.55.30] helo=lists.commandprompt.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1StQMl-00028A-D9 for pgsql-admin@postgresql.org; Mon, 23 Jul 2012 21:40:36 +0000 Received: from [192.168.1.5] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id A72FBCC; Mon, 23 Jul 2012 14:40:21 -0700 (PDT) Received: from [192.168.1.5] ([68.118.161.194] helo=[192.168.1.5]) by assp.commandprompt.com with ESMTPS(AES256-SHA) (2.1.1); 23 Jul 2012 14:40:21 -0700 Message-ID: <500DC4BB.2090102@commandprompt.com> Date: Mon, 23 Jul 2012 14:40:11 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Gary Webster CC: pgsql-admin@postgresql.org Subject: Re: db size growing out of control when using clustered Jackrabbit References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.1.1(11364) on assp.commandprompt.com X-Assp-Client-SSL: yes X-Assp-ID: assp.commandprompt.com m1-79621-04453 X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: webster@lexmark.com X-Assp-Original-Subject: Re: [ADMIN] db size growing out of control when using clustered Jackrabbit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/63 X-Sequence-Number: 39780 On 07/23/2012 02:13 PM, Gary Webster wrote: > Hello. I'm hoping someone has seen this before. > > We are trying to use Postgres Plus v9.1.3 as the Persistence Manager in > Jackrabbit (Apache JCR) clustering > (http://wiki.apache.org/jackrabbit/Clustering). > Whenever the JCR is under load, the ws_bundle TOAST table in the > repository schema, grows out of control ! > > Some of my team members maintain that this problem doesn't occur with > MySQL, but I would rather stay with Postgres if possible... I don't really know anything about jackrabbit but generally this problem presents when you have a lot of transactions that are idle. Meaning, you have transactions that are just open, doing nothing. This will present a problem with routine maintenance. Under load you can check your process list to see if you have long running transactions that are idle ( idle in transaction ). If you do, you have a code problem not a postgres problem and it is presenting itself through bloat. Note: IDLE is fine. It is specifically IDLE IN TRANSACTION that is a problem. Sincerely, Joshua D. Drake > > Thanks. > -- Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Support, Training, Professional Services and Development High Availability, Oracle Conversion, Postgres-XC @cmdpromptinc - 509-416-6579