Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRk8t-0005KX-8P for pgsql-admin@arkaria.postgresql.org; Fri, 05 Feb 2016 17:25:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRk8s-00057k-Rm for pgsql-admin@arkaria.postgresql.org; Fri, 05 Feb 2016 17:25:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRk7D-0002ZX-5m for pgsql-admin@postgresql.org; Fri, 05 Feb 2016 17:24:15 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aRk7A-0002cm-Gv for pgsql-admin@postgresql.org; Fri, 05 Feb 2016 17:24:13 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 95A65201AC3E for ; Fri, 5 Feb 2016 09:18:48 -0800 (PST) Date: Fri, 5 Feb 2016 10:24:10 -0700 (MST) From: rajan To: pgsql-admin@postgresql.org Message-ID: <1454693050706-5886073.post@n5.nabble.com> Subject: Monitoring Active Connections MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hello, I have a scenario in which a deadlock occurred following an unusual increase in Number of Active Connections to the database. In an hour, the Active Connection shooted up to 250 from 1 and it came back to normal by the end of the hour. At that time the deadlock occurred. Deadlock information contains a relation id and two pids, both of them are NOT traceable. Now I want to analysed what would have caused an unsual number of increase in the number of Active Connections, I can't get any data out of pg_stat_activity. Now the total number of connections is 75 only. Will there be any log from which I can get those queries or connection details? Can anybody help me on this? ----- -- Thanks, Rajan. -- View this message in context: http://postgresql.nabble.com/Monitoring-Active-Connections-tp5886073.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin