Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TRPhQ-00075e-T8 for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 15:50:24 +0000 Received: from mailout-us.gmx.com ([74.208.5.67]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TRPhJ-0001Ye-Jz for pgsql-jdbc@postgresql.org; Thu, 25 Oct 2012 15:50:24 +0000 Received: (qmail 15727 invoked by uid 0); 25 Oct 2012 15:03:03 -0000 Received: from 76.255.19.161 by rms-us020 with HTTP Content-Type: text/plain; charset="utf-8" Date: Thu, 25 Oct 2012 11:03:02 -0400 From: "Kevin Grittner" Message-ID: <20121025150302.306890@gmx.com> MIME-Version: 1.0 Subject: Re: test will not be finished when i using 200 client threads To: "colin" ,pgsql-jdbc@postgresql.org X-Authenticated: #138763884 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: 8TH7cIUW3zOlOQ09LnwhBYV+IGRvb0Dj X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/115 X-Sequence-Number: 23439 colin wrote: > My key configuration in postgresql.conf > > listen_addresses = '*' > max_connections = 400 > shared_buffers = 512MB > temp_buffers = 200MB > work_mem = 1GB > maintenance_work_mem = 512MB You didn't say anything about your hardware or OS.  For that to be a somewhat reasonable configuration you would need to be running on Windows with about 1TB of RAM and about 70 disk spindles. If your runtime environment doesn't look like that, you need to make some adjustments. Rather than guess at it, please tell us your OS, the exact version of PostgreSQL (the output of `SELECT version();`), and describe your hardware (RAM, processors, storage array, RAID controller, etc.). With the additional information, people can make more useful suggestions. -Kevin