X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AA4253CB6B3 for ; Sat, 25 Dec 2004 03:27:20 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59973-06 for ; Sat, 25 Dec 2004 03:27:06 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 476263CB6A4 for ; Sat, 25 Dec 2004 03:27:09 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id iBP3R9hW012613; Fri, 24 Dec 2004 22:27:09 -0500 (EST) To: "Nico" Cc: pgsql-jdbc@postgresql.org Subject: Re: Resource temporarily unavailable In-reply-to: References: Comments: In-reply-to "Nico" message dated "Sat, 25 Dec 2004 00:59:48 +0100" Date: Fri, 24 Dec 2004 22:27:09 -0500 Message-ID: <12612.1103945229@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200412/183 X-Sequence-Number: 11849 "Nico" writes: > topframe gets data from two tables, so does the left and the right. They > each make a connection and a resultset for each (6 of them) query based on > those tables. Additionally, they use a common table for metadata. > After a few refreshes(three or four), he gives me an error: resource > temporarily unavailable. How can I resolve this issue? I think you're running into a processes-per-user limit, preventing the postmaster from spawning more backend processes. You can and should raise that limit (see your kernel documentation for details --- without knowing what platform you're running on, I can't help). But you should also rethink the strategy of opening a separate database connection for each individual query. The overhead of doing things that way is enormous. regards, tom lane