pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nico <nicohmail-postgresql@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Resource temporarily unavailable
Date: Sun, 26 Dec 2004 00:05:54 +0100
Message-ID: <cqkroh$qmv$1@news.hub.org> (raw)
References: <cqiahi$ct6$1@news.hub.org>
	<12612.1103945229@sss.pgh.pa.us>

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" <tgl@sss.pgh.pa.us> schreef in bericht 
news:12612.1103945229@sss.pgh.pa.us...
> "Nico" <nicohmail-postgresql@yahoo.com> 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
> 





view thread (5+ messages)  latest in thread

Message-ID: <cqkroh$qmv$1@news.hub.org>
Permalink:  ../cqkroh$qmv$1@news.hub.org/
Also on:    postgresql.org/message-id/cqkroh$qmv$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: nicohmail-postgresql@yahoo.com
  Subject: Re: Resource temporarily unavailable
  In-Reply-To: <cqkroh$qmv$1@news.hub.org>
  References: <cqiahi$ct6$1@news.hub.org> <12612.1103945229@sss.pgh.pa.us> <cqkroh$qmv$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox