Hi Chris,
I came across this and thought I might just post to this email, as I am not
sure whether I am having the "too many connections" to PostgreSQL problem as
well. The situation now I have is that there are about 7-8 postgres.exe
running at a same time. Pardon me for the question, but is this supposed to
be normal? If not, what could be the reason? I am using GeoServer 1.3.0-RC2,
PostgreSQL 8.0 and PostGIS 1.0.4-1.
Another question: Can I understand how database connections are handled in
GeoServer with PostgreSQL? The reason why I ask this is that I need to do
database updates at a very high frequency (in intervals of seconds), and
thus I am concerned if GeoServer is creating, opening and closing
connections for every single request as this will certainly eats up a lot of
memory for my application. Could you please explain what the mechanism for
PostgreSQL connections is, or is there some documentation which I can refer
to? Or is there a need for me to be worried at all?
Thanks.
Regards,
Lee Wai See
ST Electronics (Info-Software Systems) Pte Ltd
-----Original Message-----
From: geoserver-users-admin@lists.sourceforge.net
[mailto:geoserver-users-admin@lists.sourceforge.net] On Behalf Of Chris
Holmes
Sent: Saturday, May 13, 2006 7:03 AM
To: Javier de la Torre
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] PostgreSQL connections
Could I convince you to maybe try 1.3.0? If it works fine then there's
definitely a bug in GeoTools 2.2.x that we should fix before 1.3.1 official.
thanks!
Chris
Javier de la Torre wrote:
Hi Chris,
I am using 1.3.1 Beta. I am doing just simple WMS getMap requests for a
Google Maps mashup. When viewing a map maybe 20 request are sent to
Geoserver one for each tile to be overlapped in Google maps.I did not try with the stable 1.3.0 version sorry.
More info. I am running it on Red Hat 9 with PostgreSQL 8.1.3 and
Postgis 1.1.2Javier.
On 12/05/2006, at 16:51, Chris Holmes wrote:
Yeah, it normally sets up a nice pool and shares all the connections.
If it's going up on every request then something's going wrong. What
operation are you doing? And what version of GeoServer? In the past
a few minor changes have lead to connection pool mess ups, though
generally in the less used operations.Chris
Javier de la Torre wrote:
Hi,
I am suffering the typical "too many connections" to PostgreSQL
while using Geoserver. Seems that for every new request for a
featureType in a PostGIS data store a new connection to the
database is stablished... Therefore the list of postmasters running
in the system start growing until it reach the 300 limit I have in
my PostgreSQL configuration file...
I have the impression that this was not happening to me before,
strange...
Is Geoserver closing the connections after each request?
Thanks.
Javier.
---------------------------------------------------------------------
---
begin:vcard
fn:Javier de la Torre
n:de la Torre;Javier
org:Museo Nacional de Ciencias Naturales (CSIC)
adr:;;C/Jose Gutierrez Abascal, 2;Madrid;Madrid;28006;Spain
email;internet:jatorre@anonymised.com
title:Scientist
url:http://www.biogeografia.com/edit/
version:2.1
end:vcard
---------------------------------------------------------------------
-----
Chris Holmes
The Open Planning Project
http://topp.openplans.org
<cholmes.vcf>------------------------------------------------------------------------
begin:vcard
fn:Javier de la Torre
n:de la Torre;Javier
org:Museo Nacional de Ciencias Naturales (CSIC)
adr:;;C/Jose Gutierrez Abascal, 2;Madrid;Madrid;28006;Spain
email;internet:jatorre@anonymised.com
title:Scientist
url:http://www.biogeografia.com/edit/
version:2.1
end:vcard------------------------------------------------------------------------
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
[This e-mail is confidential and may be priviledged. If you are not the
intended recipient, please kindly notify us immediately and delete the message
from your system; please do not copy or use it for any purpose, nor disclose
its contents to any other person. Thank you.]
---ST Electronics Group---