Skip to Content.
Sympa Menu

freetds - Re: [freetds] Connection Pool - Max number of fields in a select query

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: <s.craig AT andronics.com>, "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Connection Pool - Max number of fields in a select query
  • Date: Wed, 5 Oct 2005 13:50:43 -0400

> From: Shaun Craig
> Sent: Wednesday, October 05, 2005 11:29 AM
>
> I'm running a multi table select query with 17 fields through my
> connection pool which works fine, when I try add another few fields
> to the query the connection pool hangs with message:
>
> No idle members left, increase MAX_POOL_CONN
> Not enough free members...placing user in WAIT
>
> The new query with extra fields executes no problem through tsql
> so I take it some setting somewhere needs to be changed for my
> connection pool, I've had a look at freetds.conf, pool.conf files
> but not sure thats what I have to change.

Yep. I don't use the pool myself, but it looks like you need to change
"max pool conn" in pool.conf.

$ grep MAX_POOL_CONN include/* src/*/*.c
src/pool/config.c:#define POOL_STR_MAX_POOL_CONN "max pool conn"
src/pool/config.c: } else if (!strcmp(option,
POOL_STR_MAX_POOL_CONN)) {
src/pool/member.c: fprintf(stderr, "No idle members left, increase
MAX_POOL_CONN\n");

$ grep pool.conf include/* src/*/*.c
include/tds_configs.h:#define FREETDS_POOLCONFFILE FREETDS_SYSCONFDIR
TDS_SDIR_SEPARATOR "pool.conf"

--jkl

-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.



  • Re: [freetds] Connection Pool - Max number of fields in a select query, Lowden, James K, 10/05/2005

Archive powered by MHonArc 2.6.24.

Top of Page