dbTalk Databases Forums  

Database server connection limit exceeded

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Database server connection limit exceeded in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
S. Male
 
Posts: n/a

Default Database server connection limit exceeded - 01-22-2010 , 10:52 AM






We are using Adaptive Server Anywhere 9 for a website coded
in ASP.Net (2003).

We use services for each database. Each service is set as a
"Personal Database Server" (there was a reason for this when
we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration, but
this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could be
an issue.

Could you clarify what should be done to ensure this error
does not occur?

Reply With Quote
  #2  
Old   
Kory Hodgson (Sybase iAnywhere)
 
Posts: n/a

Default Re: Database server connection limit exceeded - 01-22-2010 , 11:00 AM






When using connection pooling, closing the connection will not actually
close it, it is instead returned to the pool to be reused. This could be
contributing to you exceeding the 10 connection limit.

To avoid using connection pooling you can set the POOLING=false
connection string parameter.

e.g. "Data Source=ASA 9.0 Sample;UID=DBA;PWD=SQL;POOLING=FALSE;"

This might add a bit of overhead to your connection time.





S. Male wrote:
Quote:
We are using Adaptive Server Anywhere 9 for a website coded
in ASP.Net (2003).

We use services for each database. Each service is set as a
"Personal Database Server" (there was a reason for this when
we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration, but
this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could be
an issue.

Could you clarify what should be done to ensure this error
does not occur?

Reply With Quote
  #3  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Database server connection limit exceeded - 01-22-2010 , 12:34 PM



NOTE: The personal server is not licensed for such use. The personal
server is licensed for use in a standalone, single-user application.
ASP.Net is not designed to be standalone and generally not a single user.

-chris

S. Male wrote:
Quote:
We are using Adaptive Server Anywhere 9 for a website coded
in ASP.Net (2003).

We use services for each database. Each service is set as a
"Personal Database Server" (there was a reason for this when
we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration, but
this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could be
an issue.

Could you clarify what should be done to ensure this error
does not occur?

Reply With Quote
  #4  
Old   
S. Male
 
Posts: n/a

Default Re: Database server connection limit exceeded - 01-25-2010 , 02:52 AM



Chris

Are you saying that a "Network Database Server" is the type
that we should be using then?


Quote:
NOTE: The personal server is not licensed for such use.
The personal server is licensed for use in a standalone,
single-user application. ASP.Net is not designed to be
standalone and generally not a single user.

-chris

S. Male wrote:
We are using Adaptive Server Anywhere 9 for a website
coded in ASP.Net (2003).

We use services for each database. Each service is set
as a "Personal Database Server" (there was a reason for
this when we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration,
but this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could
be an issue.

Could you clarify what should be done to ensure this
error does not occur?

Reply With Quote
  #5  
Old   
S. Male
 
Posts: n/a

Default Re: Database server connection limit exceeded - 01-25-2010 , 02:54 AM



Kory

You say "when using connection pooling".

Does this means it's something we choose to use?
Because we have not chosen to use this.

Or is it (as I understand it) used anyway, hence the
explicit "Pooling=False"?


Quote:
When using connection pooling, closing the connection will
not actually close it, it is instead returned to the pool
to be reused. This could be contributing to you exceeding
the 10 connection limit.

To avoid using connection pooling you can set the
POOLING=false connection string parameter.

e.g. "Data Source=ASA 9.0 Sample;UID=DBA;PWD=SQL
;POOLING=FALSE;"

This might add a bit of overhead to your connection time.





S. Male wrote:
We are using Adaptive Server Anywhere 9 for a website
coded in ASP.Net (2003).

We use services for each database. Each service is set
as a "Personal Database Server" (there was a reason for
this when we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration,
but this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could
be an issue.

Could you clarify what should be done to ensure this
error does not occur?

Reply With Quote
  #6  
Old   
Breck Carter [TeamSybase]
 
Posts: n/a

Default Re: Database server connection limit exceeded - 01-25-2010 , 04:00 AM



Yes, that's what he's saying.

Breck

On 25 Jan 2010 00:52:12 -0800, S. Male wrote:

Quote:
Chris

Are you saying that a "Network Database Server" is the type
that we should be using then?


NOTE: The personal server is not licensed for such use.
The personal server is licensed for use in a standalone,
single-user application. ASP.Net is not designed to be
standalone and generally not a single user.

-chris

S. Male wrote:
We are using Adaptive Server Anywhere 9 for a website
coded in ASP.Net (2003).

We use services for each database. Each service is set
as a "Personal Database Server" (there was a reason for
this when we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration,
but this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could
be an issue.

Could you clarify what should be done to ensure this
error does not occur?
--
Breck Carter - Blog: http://sqlanywhere.blogspot.com/

SQLA questions and answers: http://sqla.stackexchange.com

RisingRoad helps SQL Anywhere developers make better databases
http://www.risingroad.com/
Breck.Carter at gmail

Reply With Quote
  #7  
Old   
Chris Keating (Sybase iAnywhere)
 
Posts: n/a

Default Re: Database server connection limit exceeded - 01-25-2010 , 06:10 AM



By default, connection pooling is enabled with the .NET driver. You must
use POOLING=FALSE to disable this.


S. Male wrote:
Quote:
Kory

You say "when using connection pooling".

Does this means it's something we choose to use?
Because we have not chosen to use this.

Or is it (as I understand it) used anyway, hence the
explicit "Pooling=False"?


When using connection pooling, closing the connection will
not actually close it, it is instead returned to the pool
to be reused. This could be contributing to you exceeding
the 10 connection limit.

To avoid using connection pooling you can set the
POOLING=false connection string parameter.

e.g. "Data Source=ASA 9.0 Sample;UID=DBA;PWD=SQL
;POOLING=FALSE;"

This might add a bit of overhead to your connection time.





S. Male wrote:
We are using Adaptive Server Anywhere 9 for a website
coded in ASP.Net (2003).

We use services for each database. Each service is set
as a "Personal Database Server" (there was a reason for
this when we first set them up which escapes me now).

We get an error when doing a long, iterative, process
stating "Database server connection limit exceeded".

The ASP.Net code closes the connection each iteration,
but this error is still incurred.

I notice on the website that a "Personal" database has a
limit of 10, whereas a "Network" database has as per
licence.

I also noticed that the Microsoft Connection Pool could
be an issue.

Could you clarify what should be done to ensure this
error does not occur?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.