From jimmyd@jdoherty.net Wed Feb 23 15:36:20 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 160208B9B63 for ; Wed, 23 Feb 2005 15:36:20 +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 34251-10 for ; Wed, 23 Feb 2005 15:36:09 +0000 (GMT) Received: from jdoherty.net (cdm-208-180-124-109.gtwn.cox-internet.com [208.180.124.109]) by svr1.postgresql.org (Postfix) with SMTP id 6C6A98B9B45 for ; Wed, 23 Feb 2005 15:36:11 +0000 (GMT) Received: (qmail 3587 invoked from network); 23 Feb 2005 16:35:36 -0000 Received: from unknown (HELO PCDOHERTY) (172.16.1.21) by 172.16.1.21 with SMTP; 23 Feb 2005 16:35:36 -0000 Message-ID: <008301c519bd$64048ba0$68363c90@ad.tri.sbc.com> From: "James M Doherty PGADMIN" To: References: <00b301c51453$ef69da20$68363c90@ad.tri.sbc.com> Subject: Re: Connection Pooling Problems Dave Page Date: Wed, 23 Feb 2005 09:36:06 -0600 MIME-Version: 1.0 Content-Type: multipart/related; type="multipart/alternative"; boundary="----=_NextPart_000_007F_01C5198B.191B5F60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.235 tagged_above=0 required=5 tests=AWL, EXTRA_MPART_TYPE, FORGED_RCVD_HELO, HTML_MESSAGE, RAZOR2_CF_RANGE_51_100, RAZOR2_CHECK, RCVD_BY_IP X-Spam-Level: * X-Archive-Number: 200502/103 X-Sequence-Number: 4993 This is a multi-part message in MIME format. ------=_NextPart_000_007F_01C5198B.191B5F60 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0080_01C5198B.191B5F60" ------=_NextPart_001_0080_01C5198B.191B5F60 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable DOES ANYONE HAVE ANY EXPERIENCE WITH THIS .... DAVE PAGE? ANYONE... Jim ----- Original Message -----=20 From: James M Doherty PGADMIN=20 To: pgsql-odbc@postgresql.org=20 Sent: Wednesday, February 16, 2005 12:18 PM Subject: [ODBC] Connection Pooling Problems=20 I have an application that uses the ODBC interface from a window XP = machine. I have set connection pooling on the pgsql driver to on with a timeout of 120 seconds. This is being called from an Excel spread = sheet. When the user refreshes the spread sheet I get hundreds of=20 connections logged in /var/log/messages from the user. There are about = 200 queries which try to execute at close to the same time.=20 As a temporary measure I have increased the number of simultaneous = connections to 500 to support this, however it does not look like=20 connection pooling is working correctly. Any ideas on how I might = diagnose this, or is there a known fix for this type of problem. I am running 7.4 and 7.03.01.00 of the ODBC driver. Thanks for any help you can give me ! Jim James M Doherty jim@jdoherty.net=20 Georgetown, TX 78626 "There is no luck without discipline" IRISH PROVERB ------=_NextPart_001_0080_01C5198B.191B5F60 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
 
DOES ANYONE HAVE ANY EXPERIENCE WITH THIS .... DAVE = PAGE?=20 ANYONE...
 
Jim
 
 
----- Original Message -----
From:=20 James M Doherty=20 PGADMIN
Sent: Wednesday, February 16, = 2005 12:18=20 PM
Subject: [ODBC] Connection = Pooling=20 Problems

I have an application that uses the ODBC interface from a window = XP=20 machine. I have set connection pooling on the pgsql driver to on = with
a timeout of 120 seconds. This is being called from an Excel = spread=20 sheet. When the user refreshes the spread sheet I get hundreds of =
connections logged in /var/log/messages from the user. There are = about=20 200 queries which try to execute at close to the same time.
 
As a temporary measure I have increased the number of = simultaneous=20 connections to 500 to support this, however it does not look like =
connection pooling is working correctly. Any ideas on how I might = diagnose this, or is there a known fix for this type of problem.
 
I am running 7.4 and 7.03.01.00 of the ODBC driver.
 
Thanks for any help you can give me !
 
Jim
 
 
 
James M Doherty
jim@jdoherty.net=20
Georgetown, TX 78626
"There is no luck without discipline" = IRISH=20 PROVERB
------=_NextPart_001_0080_01C5198B.191B5F60-- ------=_NextPart_000_007F_01C5198B.191B5F60 Content-Type: image/gif; name="tech.gif" Content-Transfer-Encoding: base64 Content-ID: <007e01c519bd$63b11470$68363c90@ad.tri.sbc.com> R0lGODlhFAAUAPcAAP//////zP//mf//Zv//M///AP/M///MzP/Mmf/MZv/MM//MAP+Z//+ZzP+Z mf+ZZv+ZM/+ZAP9m//9mzP9mmf9mZv9mM/9mAP8z//8zzP8zmf8zZv8zM/8zAP8A//8AzP8Amf8A Zv8AM/8AAMz//8z/zMz/mcz/Zsz/M8z/AMzM/8zMzMzMmczMZszMM8zMAMyZ/8yZzMyZmcyZZsyZ M8yZAMxm/8xmzMxmmcxmZsxmM8xmAMwz/8wzzMwzmcwzZswzM8wzAMwA/8wAzMwAmcwAZswAM8wA AJn//5n/zJn/mZn/Zpn/M5n/AJnM/5nMzJnMmZnMZpnMM5nMAJmZ/5mZzJmZmZmZZpmZM5mZAJlm /5lmzJlmmZlmZplmM5lmAJkz/5kzzJkzmZkzZpkzM5kzAJkA/5kAzJkAmZkAZpkAM5kAAGb//2b/ zGb/mWb/Zmb/M2b/AGbM/2bMzGbMmWbMZmbMM2bMAGaZ/2aZzGaZmWaZZmaZM2aZAGZm/2ZmzGZm mWZmZmZmM2ZmAGYz/2YzzGYzmWYzZmYzM2YzAGYA/2YAzGYAmWYAZmYAM2YAADP//zP/zDP/mTP/ ZjP/MzP/ADPM/zPMzDPMmTPMZjPMMzPMADOZ/zOZzDOZmTOZZjOZMzOZADNm/zNmzDNmmTNmZjNm MzNmADMz/zMzzDMzmTMzZjMzMzMzADMA/zMAzDMAmTMAZjMAMzMAAAD//wD/zAD/mQD/ZgD/MwD/ AADM/wDMzADMmQDMZgDMMwDMAACZ/wCZzACZmQCZZgCZMwCZAABm/wBmzABmmQBmZgBmMwBmAAAz /wAzzAAzmQAzZgAzMwAzAAAA/wAAzAAAmQAAZgAAMwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAFAAUAEAIQwBJCBxI sKBBAAgTKlyYUCDDhwsdQpwoceLDihYjksh4cSNHjR9BhmzocSQAjCFRflTJkWVGlxZhUiw5UiZE gzhzBgQAOw== ------=_NextPart_000_007F_01C5198B.191B5F60-- From jeff_eckermann@yahoo.com Wed Feb 23 16:11:58 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B453F8B9ECD for ; Wed, 23 Feb 2005 16:11:58 +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 47715-03 for ; Wed, 23 Feb 2005 16:11:48 +0000 (GMT) Received: from web20821.mail.yahoo.com (web20821.mail.yahoo.com [216.136.227.134]) by svr1.postgresql.org (Postfix) with SMTP id 9774F8B9EC4 for ; Wed, 23 Feb 2005 16:11:46 +0000 (GMT) Received: (qmail 80694 invoked by uid 60001); 23 Feb 2005 16:11:45 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=0hlP7bQDKc4zBThUbaHLsiJgrFex84xXVHT7FCTFXYwBM/YX+a6TbKG3gh1EOdnsSTAbPfaOoFnod0WIsD2+uhjjwd9S9RWi9Sf+xtj6nhvYocQWaQ95i/+lbLAk/G3fyg259NFFroC03zenxdUQqKlF9sWfJReDvCqoViWuDj4= ; Message-ID: <20050223161145.80692.qmail@web20821.mail.yahoo.com> Received: from [24.248.12.141] by web20821.mail.yahoo.com via HTTP; Wed, 23 Feb 2005 08:11:45 PST Date: Wed, 23 Feb 2005 08:11:45 -0800 (PST) From: Jeff Eckermann Subject: Re: Connection Pooling Problems Dave Page To: James M Doherty PGADMIN , pgsql-odbc@postgresql.org In-Reply-To: <008301c519bd$64048ba0$68363c90@ad.tri.sbc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.365 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200502/104 X-Sequence-Number: 4994 --- James M Doherty PGADMIN wrote: > > DOES ANYONE HAVE ANY EXPERIENCE WITH THIS .... DAVE > PAGE? ANYONE... More information would be good. Relevant code, relevant extracts from log files. What is the application actually doing, when the problem occurs? > > Jim > > > ----- Original Message ----- > From: James M Doherty PGADMIN > To: pgsql-odbc@postgresql.org > Sent: Wednesday, February 16, 2005 12:18 PM > Subject: [ODBC] Connection Pooling Problems > > > I have an application that uses the ODBC interface > from a window XP machine. I have set connection > pooling on the pgsql driver to on with > a timeout of 120 seconds. This is being called > from an Excel spread sheet. When the user refreshes > the spread sheet I get hundreds of > connections logged in /var/log/messages from the > user. There are about 200 queries which try to > execute at close to the same time. > > As a temporary measure I have increased the number > of simultaneous connections to 500 to support this, > however it does not look like > connection pooling is working correctly. Any ideas > on how I might diagnose this, or is there a known > fix for this type of problem. > > I am running 7.4 and 7.03.01.00 of the ODBC > driver. > > Thanks for any help you can give me ! > > Jim > > > > James M Doherty > jim@jdoherty.net > Georgetown, TX 78626 > "There is no luck without discipline" IRISH PROVERB __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From jimmyd@jdoherty.net Wed Feb 23 16:25:33 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1A3438B9E21 for ; Wed, 23 Feb 2005 16:25:33 +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 49669-10 for ; Wed, 23 Feb 2005 16:25:28 +0000 (GMT) Received: from jdoherty.net (cdm-208-180-124-109.gtwn.cox-internet.com [208.180.124.109]) by svr1.postgresql.org (Postfix) with SMTP id 4AA3C8B9E19 for ; Wed, 23 Feb 2005 16:25:27 +0000 (GMT) Received: (qmail 4249 invoked from network); 23 Feb 2005 17:24:51 -0000 Received: from unknown (HELO PCDOHERTY) (172.16.1.21) by 172.16.1.21 with SMTP; 23 Feb 2005 17:24:51 -0000 Message-ID: <00ad01c519c4$456b46f0$68363c90@ad.tri.sbc.com> From: "James M Doherty PGADMIN" To: "Jeff Eckermann" , References: <20050223161145.80692.qmail@web20821.mail.yahoo.com> Subject: Re: Connection Pooling Problems Dave Page Date: Wed, 23 Feb 2005 10:25:21 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.446 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200502/105 X-Sequence-Number: 4995 Well, the application works fine for the time being, however on the server log reveals: SMALL EXTRACT-------------------------------------------------------------------------------------------------- Feb 7 09:17:13 ccbankdb pg[14878]: [2] LOG: connection received: host=10.10.124.193 port=1306 Feb 7 09:17:13 ccbankdb pg[14878]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:20 ccbankdb pg[14879]: [2] LOG: connection received: host=10.10.124.193 port=1307 Feb 7 09:17:20 ccbankdb pg[14879]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:21 ccbankdb pg[14880]: [2] LOG: connection received: host=10.10.124.193 port=1308 Feb 7 09:17:21 ccbankdb pg[14880]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:22 ccbankdb pg[14881]: [2] LOG: connection received: host=10.10.124.193 port=1309 Feb 7 09:17:22 ccbankdb pg[14881]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:22 ccbankdb pg[14882]: [2] LOG: connection received: host=10.10.124.193 port=1310 Feb 7 09:17:22 ccbankdb pg[14882]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:23 ccbankdb pg[14883]: [2] LOG: connection received: host=10.10.124.193 port=1311 Feb 7 09:17:23 ccbankdb pg[14883]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:24 ccbankdb pg[14884]: [2] LOG: connection received: host=10.10.124.193 port=1312 Feb 7 09:17:24 ccbankdb pg[14884]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:24 ccbankdb pg[14885]: [2] LOG: connection received: host=10.10.124.193 port=1313 Feb 7 09:17:24 ccbankdb pg[14885]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:25 ccbankdb pg[14886]: [2] LOG: connection received: host=10.10.124.193 port=1314 Feb 7 09:17:25 ccbankdb pg[14886]: [3] LOG: connection authorized: user=sdoherty database=ccbank Feb 7 09:17:26 ccbankdb pg[14887]: [2] LOG: connection received: host=10.10.124.193 port=1315 Feb 7 09:17:26 ccbankdb pg[14887]: [3] LOG: connection authorized: user=sdoherty database=ccbank Since there are cells in EXCEL each containing a query, The server gets hit with a connection request per query. This in turn originally exceeded the maximum connections supported by my configuration on the server. I raised the number of connections supported to 500, however this seems like a work around which may resurface again soon. I have verified that POOLING is turned on in the ODBC driver from the ODBC-ADMIN tool. I am looking for ideas on how to further determine what is actually not working. Is it something in the driver ? or Is it something to do with EXCEL's handling of queries. Jim ----- Original Message ----- From: "Jeff Eckermann" To: "James M Doherty PGADMIN" ; Sent: Wednesday, February 23, 2005 10:11 AM Subject: Re: [ODBC] Connection Pooling Problems Dave Page > --- James M Doherty PGADMIN > wrote: > >> >> DOES ANYONE HAVE ANY EXPERIENCE WITH THIS .... DAVE >> PAGE? ANYONE... > > More information would be good. Relevant code, > relevant extracts from log files. What is the > application actually doing, when the problem occurs? > >> >> Jim >> >> >> ----- Original Message ----- >> From: James M Doherty PGADMIN >> To: pgsql-odbc@postgresql.org >> Sent: Wednesday, February 16, 2005 12:18 PM >> Subject: [ODBC] Connection Pooling Problems >> >> >> I have an application that uses the ODBC interface >> from a window XP machine. I have set connection >> pooling on the pgsql driver to on with >> a timeout of 120 seconds. This is being called >> from an Excel spread sheet. When the user refreshes >> the spread sheet I get hundreds of >> connections logged in /var/log/messages from the >> user. There are about 200 queries which try to >> execute at close to the same time. >> >> As a temporary measure I have increased the number >> of simultaneous connections to 500 to support this, >> however it does not look like >> connection pooling is working correctly. Any ideas >> on how I might diagnose this, or is there a known >> fix for this type of problem. >> >> I am running 7.4 and 7.03.01.00 of the ODBC >> driver. >> >> Thanks for any help you can give me ! >> >> Jim >> >> >> >> James M Doherty >> jim@jdoherty.net >> Georgetown, TX 78626 >> "There is no luck without discipline" IRISH > PROVERB > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - now with 250MB free storage. Learn more. > http://info.mail.yahoo.com/mail_250 > From jeff_eckermann@yahoo.com Wed Feb 23 20:24:17 2005 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 65DC754D3A for ; Wed, 23 Feb 2005 20:24:17 +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 25554-01 for ; Wed, 23 Feb 2005 20:24:08 +0000 (GMT) Received: from web20822.mail.yahoo.com (web20822.mail.yahoo.com [216.136.227.135]) by svr1.postgresql.org (Postfix) with SMTP id 1A06553C91 for ; Wed, 23 Feb 2005 20:24:07 +0000 (GMT) Received: (qmail 33502 invoked by uid 60001); 23 Feb 2005 20:24:08 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=W8Le8d1hPSEnRyenvtORX7fn+5B9yfp/gLr9PweaeXXXQUcbR85nCAp4SIUPqvoC1xpwE7UZsl3LBQyJ1Gf4zfmD9EAGeqtdEXWsPWlcTuf0arMvf+3EQxtmCDR8j3keaWr7rw7kqfgSeI4HBI0MY8XWMr/Aw1I5bDMFNP5/scA= ; Message-ID: <20050223202408.33500.qmail@web20822.mail.yahoo.com> Received: from [24.248.12.141] by web20822.mail.yahoo.com via HTTP; Wed, 23 Feb 2005 12:24:08 PST Date: Wed, 23 Feb 2005 12:24:08 -0800 (PST) From: Jeff Eckermann Subject: Re: Connection Pooling Problems Dave Page To: James M Doherty PGADMIN , pgsql-odbc@postgresql.org In-Reply-To: <00ad01c519c4$456b46f0$68363c90@ad.tri.sbc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.361 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200502/109 X-Sequence-Number: 4999 --- James M Doherty PGADMIN wrote: > > Since there are cells in EXCEL each containing a > query, The server gets hit > with a connection request per query. This > in turn originally exceeded the maximum connections > supported by my > configuration on the server. I raised the number of > connections supported to 500, however this seems > like a work around which > may resurface again soon. You might want to rethink your design. Using something like ADO, it's fairly easy to get your data in a single query, and assign the values to cells however you want. > > I have verified that POOLING is turned on in the > ODBC driver from the > ODBC-ADMIN tool. > > I am looking for ideas on how to further determine > what is actually not > working. Is it something in the driver ? or Is it > something to do with > EXCEL's handling of queries. > > Jim > > ----- Original Message ----- > From: "Jeff Eckermann" > To: "James M Doherty PGADMIN" ; > > > Sent: Wednesday, February 23, 2005 10:11 AM > Subject: Re: [ODBC] Connection Pooling Problems Dave > Page > > > > --- James M Doherty PGADMIN > > wrote: > > > >> > >> DOES ANYONE HAVE ANY EXPERIENCE WITH THIS .... > DAVE > >> PAGE? ANYONE... > > > > More information would be good. Relevant code, > > relevant extracts from log files. What is the > > application actually doing, when the problem > occurs? > > > >> > >> Jim > >> >> > >> ----- Original Message ----- > >> From: James M Doherty PGADMIN > >> To: pgsql-odbc@postgresql.org > >> Sent: Wednesday, February 16, 2005 12:18 PM > >> Subject: [ODBC] Connection Pooling Problems > >> > >> > >> I have an application that uses the ODBC > interface > >> from a window XP machine. I have set connection > >> pooling on the pgsql driver to on with > >> a timeout of 120 seconds. This is being called > >> from an Excel spread sheet. When the user > refreshes > >> the spread sheet I get hundreds of > >> connections logged in /var/log/messages from > the > >> user. There are about 200 queries which try to > >> execute at close to the same time. > >> > >> As a temporary measure I have increased the > number > >> of simultaneous connections to 500 to support > this, > >> however it does not look like > >> connection pooling is working correctly. Any > ideas > >> on how I might diagnose this, or is there a known > >> fix for this type of problem. > >> > >> I am running 7.4 and 7.03.01.00 of the ODBC > >> driver. > >> > >> Thanks for any help you can give me ! > >> > >> Jim > >> > >> > >> > >> James M Doherty > >> jim@jdoherty.net > >> Georgetown, TX 78626 > >> "There is no luck without discipline" IRISH > > PROVERB > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - now with 250MB free storage. Learn > more. > > http://info.mail.yahoo.com/mail_250 > > > > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail