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 3A3D13A9EA4 for ; Sat, 25 Dec 2004 23:06:09 +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 24584-09 for ; Sat, 25 Dec 2004 23:05:59 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id C49CC3AAA6C for ; Sat, 25 Dec 2004 23:05:59 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 2EBB93196E; Sun, 26 Dec 2004 00:05:58 +0100 (MET) From: "Nico" X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: Resource temporarily unavailable Date: Sun, 26 Dec 2004 00:05:54 +0100 Organization: Hub.Org Networking Services Lines: 30 Message-ID: References: <12612.1103945229@sss.pgh.pa.us> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original To: pgsql-jdbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.086 tagged_above=0 required=5 tests=AWL, FORGED_YAHOO_RCVD, PRIORITY_NO_NAME X-Spam-Level: *** X-Archive-Number: 200412/184 X-Sequence-Number: 11850 The kernel is 2.4.21-15.0.2.ELsmp. Don't know which Linux distribution, since it's a remote server. So you think, I should keep the connection open the whole time until the servlet is finished, instead of opening and closing it everytime I need it? "Tom Lane" schreef in bericht news:12612.1103945229@sss.pgh.pa.us... > "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 > > ---------------------------(end of broadcast)--------------------------- > TIP 8: explain analyze is your friend >