Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 4B8C010135DD03
 for <oracle-l@orafaq.com>; Tue, 10 Oct 2017 09:58:03 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id F2B4F18683;
 Tue, 10 Oct 2017 03:58:01 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1507622282;
 bh=oXhMp3Fdo+w59iJIfgy7ozOqGw+mN1N67VQxZyu/8vk=;
 h=Subject:To:References:From:Date:In-Reply-To:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive;
 b=BilMAcfKpJIj1YnAh2iZoCctAaZLsKjMb36B8UwI/1xEOB0PBYiL7kUP7NYOalL79
	 xrD+psm72dZG/it+XpU8poqJr/Z1H9jKRyr5zi1LVa5NyFohtGvFpnHI3PPY1YxClD
	 gnCqhJQNM0GvtbQUtpjVdtkBzKnZ4y2A2l97j6Kg=
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id fyBckHn-qgIu; Tue, 10 Oct 2017 03:58:01 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7EAA017AA0;
 Tue, 10 Oct 2017 03:57:49 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1507622281;
 bh=oXhMp3Fdo+w59iJIfgy7ozOqGw+mN1N67VQxZyu/8vk=;
 h=Subject:To:References:From:Date:In-Reply-To:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive;
 b=SOsFX1jIgYQ0KylrsKuevl0kFHCghj/A/oHi7aU63weqG4URCNbpVp8rn9p9YlI5e
	 RnvQdTyePCzmBOLo5ocmifX4iCPyLqUkOm8Nc9Qi/vm0yiVH3NbVN29eDfHliq2ZTQ
	 kEfjinmcGt6bOOGTs+gLmwNMSseGi1n1IzRjwBbI=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 10 Oct 2017 03:56:28 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DC900182A4
 for <oracle-l@freelists.org>; Tue, 10 Oct 2017 03:56:27 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id yrRfQA7dz49w for <oracle-l@freelists.org>;
 Tue, 10 Oct 2017 03:56:27 -0400 (EDT)
Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 575DA18266
 for <oracle-l@freelists.org>; Tue, 10 Oct 2017 03:56:27 -0400 (EDT)
Received: from [192.168.1.67] ([82.4.98.157]) by mrelayeu.kundenserver.de
 (mreue004 [212.227.15.163]) with ESMTPA (Nemesis) id 0Mb5Gp-1dimJO44cd-00KdCK
 for <oracle-l@freelists.org>; Tue, 10 Oct 2017 09:56:26 +0200
Subject: Re: PGA_AGGREGATE_TARGET, AUTO PGA TARGET and WORKAREA_SIZE_POLICY
To: oracle-l@freelists.org
References: <CANRhLpCH1SNxY9AjmCXuLtKKC3oSN+TChDq0gocNXN9CskodJA@mail.gmail.com>
 <765f8523-7766-c607-331d-b3f1381bc1c8@gmail.com>
 <CAHSa0M0N2ZmNyfSapnGqH+j9Y-+gB7Ff3vizRtB1jxGR+Mc1sg@mail.gmail.com>
 <94dea893-f120-c96e-c8c3-1f7ed048b94c@gmail.com>
 <c599599e-5d6d-900d-c1f1-2a6d0d80660b@gmail.com>
 <1f527cb8-028e-64c8-3fc6-fedb8f78217a@dunbar-it.co.uk>
 <20f4f28e-c742-e234-d9fd-fa835c2c4661@gmail.com>
From: Norman Dunbar <oracle@dunbar-it.co.uk>
Message-ID: <da20acac-7cf5-3bab-e446-a68c9235ab06@dunbar-it.co.uk>
Date: Tue, 10 Oct 2017 08:56:25 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <20f4f28e-c742-e234-d9fd-fa835c2c4661@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:B2s+I6bBE7o7vhBjYPNot0Rwd5Xm9L3q9UsyvV+nzy2R54hXEs8
 uMJlZkgUU4FFMGTM6FpCn19DMXrkDuqbZgHI96zOj9p2bu9VM/jCGd2BCnMdpX/f3cYOx/e
 c4suvTzwMmXpkYB6Z4CFd4jLJ/4GkuFkzk329tWQe9gRJ6/Gp68nr7qqASrRDjGAtPnjx60
 lmVE94U+SlB78gF/rKIcw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Rcz7K+70SUk=:qEcmQqmQvU0sRG2GLcJZ8Y
 g2b6q5ctXMwmt8WLl/F3a0elYIOKqN8euEWsKdCnPJtUMLAoOEaWzzZVVDe6ZAgKLydURZlXw
 uhLmu1d+dIEXOW+fQuxJ5w8BJGs7VW2ue0mHtTLIptSOOtS0Wc6kfi3uZj7EDM9rcAz4wFpkG
 UiDNOevLyANIe37QgytDAC1PLqlIeewaTVn3E5z4hTGmtz7il1KUBo5q540YC4ZSQBKY0vNFn
 QNk/QjmN4ctf2D0aIY0lqBjFvCfMZnvwiO/ZBdzcEsjkQtIVrHuiUJENFXriA+ImhbsXlrsQa
 sxoqToy36heH6iElW8nNNth7NTvA5lCEwfGhnoRRpU1V9UacLUDxx684okLyRwbZIHLQ+6loJ
 c7F+PHy8xi1pmelUvwTsWExgJwrpuaZoOjFyjCBYV7gGMdStefXWupMaCyDqJjvJ8RxKZliij
 B9G31NgsF7PLfEhB0GO7+Mr2XQbTxkqo5VEJ4yOUxnz8aa/5aWMovDXEB/RkjjvqlS32IamoN
 zLBk5nUzlOAcI6RSl9VEki2Vh8iVa2QekNXtyabDnT5vWetixb9irpWR9Hi2L97DYmAxYbgTK
 k1mSZn6rPQrTGAYII0hO7emX+dHkm2Fgr0K+d/hLrYhSomKtlOfcVI7DeFjFDOW8o6x5pRc07
 F1WfU34uGrKdbSPlrNCTy0nEkHO7DBUXotq4uxVLLqVuj/G7ao/aoUe2Ab303x9dXMfbWn2xc
 8Um41QZ26IzvMylMwEileAIn/fMivY/9gMrSHW11usBGEN4OfwCADVwCVoc=
X-archive-position: 69509
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: oracle@dunbar-it.co.uk
Precedence: normal
Reply-To: oracle@dunbar-it.co.uk
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

On 09/10/17 23:24, Tim Gorman wrote:
> 
> In the case of idle connected sessions, almost certainly the "tunable" 
> structures such as sort area and hash area are at absolute minimums due 
> to lack of use, if not completely deallocated, so any PGA detected 
> within those idle sessions most likely was due to "untunable" memory 
> structures built in by application code, and even that was likely to be 
> minimal due to lack of recent use.  So the active sessions ranked higher 
> on that scale, and got whacked for it.
> 
> Session leaks like this are eventually fatal, and while 
> PGA_AGGREGATE_LIMIT was fatal for the application, consider how much 
> longer it might have taken to recover if the server crashed too due to 
> virtual memory exhaustion?

Morning Tim,

while I agree which what you say above, and especially the bit about 
tunable PGA, my impression that the algorithm is perhaps faulty still 
stands. Here's why.

Originally, the database was having to be restarted every week, 
sometimes even less, as our monitoring detected that the used PGA was 
getting close to the limit. That caused no end of problems for the user 
as you would understand.

Then we implemented my workaround for the problem, later accepted by the 
vendor as the fix, which looks for, and kills off only idle sessions. 
Suddenly, we no longer have a problem with used PGA getting close to the 
limit and we don't restart the database every week any more - speaking 
with ex colleagues, we haven't restarted it for months now.

So, given that killing idle sessions only actually prevents the problem 
(at least for us), perhaps Oracle's algorithm should consider idle 
sessions before killing active ones? The limit is PGA after all, and 
surely saving some GB of PGA from idle sessions is better that killing 
active sessions - at least, initially.

I'd be happy (ish) if Oracle did have to kill active sessions but only 
after killing the idle ones first.


Cheers,
Norm.

-- 
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
Pudsey
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767
--
http://www.freelists.org/webpage/oracle-l


