Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRNtB-0006jA-FE for pgsql-admin@arkaria.postgresql.org; Wed, 02 Oct 2013 14:58:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VRNtA-0006YV-VO for pgsql-admin@arkaria.postgresql.org; Wed, 02 Oct 2013 14:58:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRNtA-0006YP-8d for pgsql-admin@postgresql.org; Wed, 02 Oct 2013 14:58:56 +0000 Received: from nm39-vm5.bullet.mail.bf1.yahoo.com ([72.30.239.149]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRNt2-0000MJ-PF for pgsql-admin@postgresql.org; Wed, 02 Oct 2013 14:58:55 +0000 Received: from [66.196.81.174] by nm39.bullet.mail.bf1.yahoo.com with NNFMP; 02 Oct 2013 14:58:46 -0000 Received: from [98.139.212.238] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 02 Oct 2013 14:58:46 -0000 Received: from [127.0.0.1] by omp1047.mail.bf1.yahoo.com with NNFMP; 02 Oct 2013 14:58:46 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 621499.28671.bm@omp1047.mail.bf1.yahoo.com Received: (qmail 89821 invoked by uid 60001); 2 Oct 2013 14:58:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1380725926; bh=lGhvHSbtGt0k8qbqAmXWo6qJcDYBjkxknKvO23Qd8fY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=w5aCJzzYNtLcahQ5NUS4LfKH3ivlVIQ44dOHAxTeqtcW5tTJY7WcRrVoCRv/lVcAT7pYZqlk3bYuPE309LoyIpm3dqNAW+KM58YlcPLE0JbCiUmgIHtp8DUo5eIw+yWQlBGGJwXMHT3gG12MSsXpx9La4TWqVVO3YKFzAN5Z3Lc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=A+aQ12HHoS3wGJY8cC5HB5G0k7Ikeu5l16FOhq80LofJH/2u2JPZWb5uc5EvRJZFOLE0EzBCsMIXB5ogbSZ8hFC9Hi/QGnNJuH6+tvQapIANhf4y5wU1ZV88C14QGWyARhSbUBN0bcBpFEYsCGzh8v423+gEJKziO8QVPRBh+H8=; X-YMail-OSG: j_6pN_cVM1lSrDctNke4bfQKr5_0lVRBiYwraTKzbRKqBJl gdLrZa17jnIIoW7gmFcpmrBg81.docjN8gDVHTAodUPqxwZCyZU0wHmFLE5h R08GMx1K3YqNYYSU7hcVD8KdEryzXdNosC_vhZAwh.dFrI.wlmbM4_fsc2eD hH3MTJI_ttPjyjHhLo39dSKXSwTzNELXzOjPVzz95BJG8OsLWEOigUCJvMc7 Yh58CoqSNrrn6CHAnup.Va2wx_RuJkq_awQEtDoZcAzwu4jU9e_9pUYIXs7I VPDKF4KefXszlbnWCHLubs4Z1bNJAiD0X2fNQFbA6ajxv7rPygbuWYIGs4DR Rplx7yJjTAong9jtb8HlyAGitEJcNBcPPufvEvYcWd7cZz0JB2qHE1SJd5mz xMz7SLRYzD63gqjVJW8go0bs8yJ0jhEbKACffhY8ZEw.ug29X.mflEsmFiqQ UJ3Api5Ln0zBjnxuXLFUz87kG4.gdIK6YjaiXq5FxtMUR9J.vPYl36Py9zcp YqMsj0wDRTDSBOBw.5fqVvPcIBL36xWk9IN8TriDcB9TBqeAhlzN5k51fSbR Z9Hu4SdjsaulxzGmSBTbM0lpdVTWxjpWSH9Y6jnlVxKP_qAq0Hzr8WwDrSyi GF7_E6FqibwZ3J6SxlobRopYzZtmZs.VsauLOyarnWCMvC58K4YjacWvzn5u cDfXIWRr71IfZ_SCoKhgerqvDQBxbOY1HHQjbHLg4lioqS9_SOGYj Received: from [76.255.18.237] by web162906.mail.bf1.yahoo.com via HTTP; Wed, 02 Oct 2013 07:58:45 PDT X-Rocket-MIMEInfo: 002.001, SWdvciBOZXltYW4gPGluZXltYW5AcGVyY2VwdHJvbi5jb20.IHdyb3RlOgoKPj4gT3VyIEphdmEgYXBwbGljYXRpb24gdXNlcyBjM3AwIGNvbm5lY3Rpb24gcG9vbGVyIGFuZCB3ZSBkb24ndAo.PiB0aGluayB0aGF0IGl0J3MgdGhlIGlzc3VlLgo.Cj4gIkNsaWVudC1zaWRlIiBjb25uZWN0aW9uIHBvb2xpbmcgaXMgZGlmZmVyZW50IGZyb20gc2VydmVyLXNpZGUKPiAoc3VjaCBhcyBQZ0JvdW5jZXIpLCBhbmQgSSBiZWxpZXZlIGlzIG5vdCBhcyBlZmZlY3RpdmUgYXMKPiBQZ0JvdW5jZXIuCgpJbiBteSBleHABMAEBAQE- X-Mailer: YahooMailWebService/0.8.160.587 References: <524ACBD0.5000400@okservers.eu> <524BD56C.7030900@okservers.eu> Message-ID: <1380725925.87939.YahooMailNeo@web162906.mail.bf1.yahoo.com> Date: Wed, 2 Oct 2013 07:58:45 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: Random server overload To: Igor Neyman , Viktor , "pgsql-admin@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) 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 Igor Neyman wrote: >> Our Java application uses c3p0 connection pooler and we don't >> think that it's the issue. > > "Client-side" connection pooling is different from server-side > (such as PgBouncer), and I believe is not as effective as > PgBouncer. In my experience a good client-side pooler can be more effective -- if all significant traffic is going through a single pooler and the pool size is set appropriately.=A0 For example, we improved performance on a 16 code 256 GB server by reducing the pool size of the web application (handling hundreds of requests per second from 3000 concurrent users) from a maximum of 60 database connections to 35. http://wiki.postgresql.org/wiki/Number_Of_Database_Connections > As you stated in original message you have multiple idle > connections, that's waste of resources. ... and a risk that if they all become active at one time, you can have a seemingly-random server overload. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin