Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VR0BK-0006Eh-NN for pgsql-admin@arkaria.postgresql.org; Tue, 01 Oct 2013 13:40:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VR0BK-00026n-5i for pgsql-admin@arkaria.postgresql.org; Tue, 01 Oct 2013 13:40:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VR0BJ-00024b-4l for pgsql-admin@postgresql.org; Tue, 01 Oct 2013 13:40:05 +0000 Received: from mail-out.elkdata.ee ([195.250.189.24]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VR0BB-0001iu-5E for pgsql-admin@postgresql.org; Tue, 01 Oct 2013 13:40:04 +0000 Received: from mail.elkdata.ee (mail.elkdata.ee [194.106.101.168]) by mail-out.elkdata.ee (Postfix) with ESMTP id 2218064EBD1B for ; Tue, 1 Oct 2013 16:39:55 +0300 (EEST) Received: from [10.0.1.204] (unknown [195.222.11.180]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.elkdata.ee (Postfix) with ESMTPSA id 425A567C531B for ; Tue, 1 Oct 2013 16:19:16 +0300 (EEST) Message-ID: <524ACBD0.5000400@okservers.eu> Date: Tue, 01 Oct 2013 16:19:12 +0300 From: Viktor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: Random server overload Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) 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, We are experiencing database random overloads caused by IDLE processes. Their count jumps from normal ~70 connections to 250-300 with high I/O (30-40% wa, when normal ~ 1 % wa). The overload isn't long and lasts about 5 -10 minutes just a couple of times during the month. Please suggest how to debug this issue and find the cause of the overloads. Or mby we should tune our config file ? errorlog example: 2013-09-30 10:37:45 EEST FATAL: sorry, too many clients already 2013-09-30 10:37:45 EEST FATAL: remaining connection slots are reserved for non-replication superuser connections ... config file: max_connections = 250 shared_buffers = 16GB temp_buffers = 16MB max_prepared_transactions = 0 work_mem = 448MB maintenance_work_mem = 4GB max_stack_depth = 6MB wal_buffers = 18MB checkpoint_segments = 30 checkpoint_timeout = 5min checkpoint_warning = 30s random_page_cost = 4.0 cpu_tuple_cost = 0.01 cpu_index_tuple_cost = 0.005 effective_cache_size = 50GB default_statistics_target = 100 autovacuum = on othr values are defaults. System: RAM 74 GB PostgreSQL 9.1.9, Debian 6 Database size on disc: 84 GB data + 23 GB indexes. Different LVMs on RAID 10. -- Best regards -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin