Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-13 Thread Slavisa Garic
Hi, This looks very interesting. I'll give it a better look and see if the performance penalties pgpool brings are not substantial in which case this program could be very helpful, Thanks for the hint, Slavisa On 4/14/05, Richard Huxton wrote: > Slavisa Garic wrote: > > This is a serious proble

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-13 Thread Slavisa Garic
HI Mark, My DBServer module already serves as a broker. At the moment it opens a new connection for every incoming Agent connection. I did it this way because I wanted to leave synchronisation to PGSQL. I might have to modify it a bit and use a shared, single connection for all agents. I guess tha

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-13 Thread Richard Huxton
Slavisa Garic wrote: This is a serious problem for me as there are multiple users using our software on our server and I would want to avoid having connections open for a long time. In the scenario mentioned below I haven't explained the magnitute of the communications happening between Agents and

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-13 Thread John DeSoi
On Apr 13, 2005, at 1:09 AM, Slavisa Garic wrote: This is not a Windows server. Both server and client are the same machine (done for testing purposes) and it is a Fedora RC2 machine. This also happens on debian server and client in which case they were two separate machines. There are thousands (2

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-13 Thread Mark Lewis
If there are potentially hundreds of clients at a time, then you may be running into the maximum connection limit. In postgresql.conf, there is a max_connections setting which IIRC defaults to 100. If you try to open more concurrent connections to the backend than that, you will get a connection

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-12 Thread Slavisa Garic
Hi Greg, This is not a Windows server. Both server and client are the same machine (done for testing purposes) and it is a Fedora RC2 machine. This also happens on debian server and client in which case they were two separate machines. There are thousands (2+) of these waiting around and each one

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-12 Thread Tom Lane
Greg Stark <[EMAIL PROTECTED]> writes: > Tom Lane <[EMAIL PROTECTED]> writes: >> This is a network-level issue: the TCP stack on your machine knows the >> connection has been closed, but it hasn't seen an acknowledgement of >> that fact from the other machine, and so it's remembering the connection

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-12 Thread Greg Stark
Tom Lane <[EMAIL PROTECTED]> writes: > Slavisa Garic <[EMAIL PROTECTED]> writes: > > ... Now, the > > interesting behaviour is this. I've ran netstat on the machine where > > my software is running and I searched for tcp connections to my PGSQL > > server. What i found was hundreds of lines like

Re: [PERFORM] [NOVICE] Many connections lingering

2005-04-12 Thread Tom Lane
Slavisa Garic <[EMAIL PROTECTED]> writes: > ... Now, the > interesting behaviour is this. I've ran netstat on the machine where > my software is running and I searched for tcp connections to my PGSQL > server. What i found was hundreds of lines like this: > tcp0 0 remus.dstc.monash:43