Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cETLL-0004xf-6s for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2016 03:56:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cETLK-0006MZ-D7 for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2016 03:56:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cETLJ-0006MC-RI for pgsql-bugs@postgresql.org; Wed, 07 Dec 2016 03:56:29 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cETLG-0004TM-17 for pgsql-bugs@postgresql.org; Wed, 07 Dec 2016 03:56:29 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id uB73uGv03334; Tue, 6 Dec 2016 19:56:16 -0800 Subject: Re: BUG #14452: Unexpected transaction behaviour To: pgsql-bugs@postgresql.org, rjsdg@sapo.pt References: <20161207024625.31175.32486@wrigleys.postgresql.org> From: John R Pierce Message-ID: <7ff1a524-c292-eda3-6bd3-7d3c5976b419@hogranch.com> Date: Tue, 6 Dec 2016 19:56:16 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161207024625.31175.32486@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12/6/2016 6:46 PM, rjsdg@sapo.pt wrote: > The system normal throughput is about 110 transactions/min constantly > without degradation. Recently a new Java module of the application was > installed and when the app startups the system throughput starts to degrade > to the point that reaches 50 transactions/min, it’s not an immediate > downfall in the throughput but it looses like 5 to 10 transactions per > minute until it reaches 50 transactions per minute. At this point if we > terminate the only existing backend pid of the new Java module (that is in > “idle in transaction” with a backend_xmin value) immediatly in the next > minute the throughput rises again to 110 transactions/min. 'idle in transaction' for more than a short amount of time is bad news, it blocks all maintenance activity like vacuuming, and causes frequently updated tables and indexes to bloat badly. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs