pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedcan't open more than 128 connections
9+ messages / 3 participants
[nested] [flat]
* can't open more than 128 connections
@ 2005-06-20 05:39 Amir Zicherman <amir.zicherman@gmail.com>
0 siblings, 0 replies; 9+ messages in thread
From: Amir Zicherman @ 2005-06-20 05:39 UTC (permalink / raw)
To: pgsql-odbc
hello,
I'm trying to open 300 connections to a database using Microsoft odbc
.NET and psqlodbc. At the 129th connection attempt i get an
exception:
{"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed" }
State: "IM005"
I know that my db can take over 300 connections without using the odbc
driver because i open 300 connections with psql with no problem. Is
there some config param i need to set on the connection string so that
i can take more connections? what am i doing wrong?
thank you, amir
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: can't open more than 128 connections
@ 2008-02-05 14:42 Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
0 siblings, 1 reply; 9+ messages in thread
From: Nguyen, Lam Thuy @ 2008-02-05 14:42 UTC (permalink / raw)
To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; pgsql-odbc
hello,
I'm trying to open 300 connections to a database using Microsoft odbc
.NET and psqlodbc. At the 129th connection attempt i get an
exception:
{"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed" }
State: "IM005"
I know that my db can take over 300 connections without using the odbc
driver because i open 300 connections with psql with no problem. Is
there some config param i need to set on the connection string so that
i can take more connections? what am i doing wrong?
thank you
This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
@ 2008-02-05 16:24 ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 9+ messages in thread
From: Nguyen, Lam Thuy @ 2008-02-05 16:24 UTC (permalink / raw)
To: pgsql-odbc
hello,
I'm trying to open 300 connections to a database using Microsoft odbc
.NET and psqlodbc. At the 129th connection attempt i get an
exception:
{"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed" }
State: "IM005"
. Is there some config param i need to set on the connection string so that
i can take more connections? what am i doing wrong?
thank you
This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
@ 2008-02-05 17:42 ` Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-05 18:29 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 18:34 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
0 siblings, 2 replies; 9+ messages in thread
From: Hiroshi Inoue @ 2008-02-05 17:42 UTC (permalink / raw)
To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; +Cc: pgsql-odbc
Nguyen, Lam Thuy wrote:
> hello,
>
> I'm trying to open 300 connections to a database using Microsoft odbc
> .NET and psqlodbc. At the 129th connection attempt i get an
> exception:
>
> {"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
> SQLAllocHandle on SQL_HANDLE_DBC failed" }
> State: "IM005"
Which version of psqlodbc driver are you using ?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
@ 2008-02-05 18:29 ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 23:56 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
1 sibling, 1 reply; 9+ messages in thread
From: Nguyen, Lam Thuy @ 2008-02-05 18:29 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
Hello,
I did not use psqlodbc driver, i used OdbcConnection of Net 2.0.
and if i user psqlodbc driver, At the 20th connection attempt, i got an error : Timeout while getting a connection from pool.
i use postgres verion 8.2.4.1
Thanks for your help.
________________________________
From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
Sent: Tue 2/5/2008 12:42 PM
To: Nguyen, Lam Thuy
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Can't open more than 128 connections
Nguyen, Lam Thuy wrote:
> hello,
>
> I'm trying to open 300 connections to a database using Microsoft odbc
> .NET and psqlodbc. At the 129th connection attempt i get an
> exception:
>
> {"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
> SQLAllocHandle on SQL_HANDLE_DBC failed" }
> State: "IM005"
Which version of psqlodbc driver are you using ?
regards,
Hiroshi Inoue
This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-05 18:29 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
@ 2008-02-05 23:56 ` Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-06 00:15 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
0 siblings, 1 reply; 9+ messages in thread
From: Hiroshi Inoue @ 2008-02-05 23:56 UTC (permalink / raw)
To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; +Cc: pgsql-odbc
Nguyen, Lam Thuy wrote:
>
> Hello,
>
> I did not use psqlodbc driver, i used OdbcConnection of Net 2.0.
Aren't you specifying a DataSource or a Driver in your connection
string when you use odbc.net ? Please upgrade the psqlodbc driver
to 8.2.0500 or later.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-05 18:29 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 23:56 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
@ 2008-02-06 00:15 ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-06 04:12 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 9+ messages in thread
From: Nguyen, Lam Thuy @ 2008-02-06 00:15 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
I am using psqlodbc 8.2.03, is it the cause ?
if i upgrade , can i open more than 128 connections ?
________________________________
From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
Sent: Tue 2/5/2008 6:56 PM
To: Nguyen, Lam Thuy
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Can't open more than 128 connections
Nguyen, Lam Thuy wrote:
>
> Hello,
>
> I did not use psqlodbc driver, i used OdbcConnection of Net 2.0.
Aren't you specifying a DataSource or a Driver in your connection
string when you use odbc.net ? Please upgrade the psqlodbc driver
to 8.2.0500 or later.
regards,
Hiroshi Inoue
This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-05 18:29 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 23:56 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-06 00:15 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
@ 2008-02-06 04:12 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 9+ messages in thread
From: Hiroshi Inoue @ 2008-02-06 04:12 UTC (permalink / raw)
To: Nguyen, Lam Thuy <l7nguyen@fcg.com>; +Cc: pgsql-odbc
Nguyen, Lam Thuy wrote:
>
> I am using psqlodbc 8.2.03, is it the cause ?
> if i upgrade , can i open more than 128 connections ?
Maybe yes.
8.3.0100 was released three days ago.
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 9+ messages in thread
* Re: Can't open more than 128 connections
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
@ 2008-02-05 18:34 ` Nguyen, Lam Thuy <l7nguyen@fcg.com>
1 sibling, 0 replies; 9+ messages in thread
From: Nguyen, Lam Thuy @ 2008-02-05 18:34 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
and here is more info :
I set max_connecion =300, but it only allows upto 128 connections.
I tried to change some para in postgresql.conf file (shared_buffer...), but it was not efficient.
I read some document in postgres site said that i should change some para of System V IPC, but how do i change them ?
I am using WinXP, SP2, 4GB of GAM
Could you help me as soon as you can.
I am look forward hearing you.
Lam
________________________________
From: Hiroshi Inoue [mailto:inoue@tpf.co.jp]
Sent: Tue 2/5/2008 12:42 PM
To: Nguyen, Lam Thuy
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Can't open more than 128 connections
Nguyen, Lam Thuy wrote:
> hello,
>
> I'm trying to open 300 connections to a database using Microsoft odbc
> .NET and psqlodbc. At the 129th connection attempt i get an
> exception:
>
> {"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
> SQLAllocHandle on SQL_HANDLE_DBC failed" }
> State: "IM005"
Which version of psqlodbc driver are you using ?
regards,
Hiroshi Inoue
This email may contain material that is confidential, privileged, and/or attorney work product for the sole use of the intended recipient. Any review, reliance, or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [nested|flat] 9+ messages in thread
end of thread, other threads:[~2008-02-06 04:12 UTC | newest]
Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-06-20 05:39 can't open more than 128 connections Amir Zicherman <amir.zicherman@gmail.com>
2008-02-05 14:42 Re: can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 16:24 ` Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 17:42 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-05 18:29 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-05 23:56 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-06 00:15 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
2008-02-06 04:12 ` Re: Can't open more than 128 connections Hiroshi Inoue <inoue@tpf.co.jp>
2008-02-05 18:34 ` Re: Can't open more than 128 connections Nguyen, Lam Thuy <l7nguyen@fcg.com>
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