Re: [SQL] Ran out of connections

2002-12-04 Thread Steve Crawford
Doing anything unusual? Forking processes, opening multiple connections within a single CGI? Have you seen any evidence that a process that opens a connection is failing to complete normally? -Steve On Wednesday 04 December 2002 3:52 pm, Mike Diehl wrote: > On Wednesday 04 December 2002 03:25

Re: [SQL] Ran out of connections

2002-12-04 Thread Roberto Mello
On Wed, Dec 04, 2002 at 02:29:25PM -0800, Steve Crawford wrote: > > If you are doing lots of database backed work you may want to check out > AOLserver (http://www.aolserver.com/). It has a multi-threaded architecture > featuring connection pooling and persistence "out of the box." Oh, it's > f

Re: [SQL] Ran out of connections

2002-12-04 Thread Mike Diehl
On Wednesday 04 December 2002 03:25 pm, Roberto Mello wrote: > On Wed, Dec 04, 2002 at 03:08:35PM -0700, Mike Diehl wrote: > > Can anyone tell me how to fix this? The out put of the ps command > > can be seen at http://dominion.dyndns.org/~mdiehl/ps.txt > > Are you using P

Re: [SQL] Ran out of connections

2002-12-04 Thread Robert Treat
Once your done scoping other things out, you might also want to look at increasing the number of allowed connections (in postgresql.conf). The defaults can be low for high traffic systems. Robert Treat On Wed, 2002-12-04 at 17:29, Steve Crawford wrote: > You probably didn't need to reboot - I sus

Re: [SQL] Ran out of connections

2002-12-04 Thread Steve Crawford
You probably didn't need to reboot - I suspect you could have probably restarted PostgreSQL and Apache (quick version) or killed the extra postgres processes. I suspect you need to look carefully at your code and method of connecting (ie. are you using mod-perl, plain old cgi perl, PHP or what)

Re: [SQL] Ran out of connections

2002-12-04 Thread Roberto Mello
On Wed, Dec 04, 2002 at 03:08:35PM -0700, Mike Diehl wrote: > Hi all. > > Twice this week, I've come to work to find my Postgres server out of > connections... effectively freezing my web server. > > Today, before I rebooted the entire system, I did a ps -auxw and kept the > file to study. I d

[SQL] Ran out of connections

2002-12-04 Thread Mike Diehl
Hi all. Twice this week, I've come to work to find my Postgres server out of connections... effectively freezing my web server. Today, before I rebooted the entire system, I did a ps -auxw and kept the file to study. I didn't find too many clients running. But I did find a whole LOT of postg