PC Review


Reply
Thread Tools Rate Thread

Connection Pool and Connection time out

 
 
=?Utf-8?B?QW51cGFt?=
Guest
Posts: n/a
 
      23rd Dec 2005
Hi all,
i am using Sql Connection with SqlHelper class;
it is working fine with windows xp and MSDE; when i developed the
application and tried it with Sql server200+ windows 2003 it gives Error
message
"The timeout period elapsed prior to obtaining a connection from the pool.
This may have occurred because all pooled connections were in use and max
pool size was reached. "
i have given the MAX pool size =75
i have no clue to this problem , i want to know what is the possible
resoultions
with regards!
Anupam

 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      23rd Dec 2005
Is it possible that you are not closing connections?

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"Anupam" <(E-Mail Removed)> wrote in message
news:3A780F7E-8B67-4596-A69E-(E-Mail Removed)...
> Hi all,
> i am using Sql Connection with SqlHelper class;
> it is working fine with windows xp and MSDE; when i developed the
> application and tried it with Sql server200+ windows 2003 it gives Error
> message
> "The timeout period elapsed prior to obtaining a connection from the pool.
> This may have occurred because all pooled connections were in use and max
> pool size was reached. "
> i have given the MAX pool size =75
> i have no clue to this problem , i want to know what is the possible
> resoultions
> with regards!
> Anupam
>



 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      23rd Dec 2005
This has been discussed many (many) times on this list. I suggest searching
the archives (google groups) or my web site for an article I wrote on
handling the connection pool.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Anupam" <(E-Mail Removed)> wrote in message
news:3A780F7E-8B67-4596-A69E-(E-Mail Removed)...
> Hi all,
> i am using Sql Connection with SqlHelper class;
> it is working fine with windows xp and MSDE; when i developed the
> application and tried it with Sql server200+ windows 2003 it gives Error
> message
> "The timeout period elapsed prior to obtaining a connection from the pool.
> This may have occurred because all pooled connections were in use and max
> pool size was reached. "
> i have given the MAX pool size =75
> i have no clue to this problem , i want to know what is the possible
> resoultions
> with regards!
> Anupam
>



 
Reply With Quote
 
Sahil Malik [MVP C#]
Guest
Posts: n/a
 
      25th Dec 2005
Bad conn. pooling architecture.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________________


"Anupam" <(E-Mail Removed)> wrote in message
news:3A780F7E-8B67-4596-A69E-(E-Mail Removed)...
> Hi all,
> i am using Sql Connection with SqlHelper class;
> it is working fine with windows xp and MSDE; when i developed the
> application and tried it with Sql server200+ windows 2003 it gives Error
> message
> "The timeout period elapsed prior to obtaining a connection from the pool.
> This may have occurred because all pooled connections were in use and max
> pool size was reached. "
> i have given the MAX pool size =75
> i have no clue to this problem , i want to know what is the possible
> resoultions
> with regards!
> Anupam
>



 
Reply With Quote
 
Skanda Subramanian
Guest
Posts: n/a
 
      26th Dec 2005
Hello Anupam:

Ensure that no codepaths in the application are leaking connections.
You would have to explicitly call the conn.Close() method.
Reduce the 'Connection LifeTime' paramter in your connection string.
Also check the number of the connections that your application is
using, probable increasing the Max Pool Size may be the answer.

HTH!
Skanda

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the connection pool size in the Sybase connection string? Wei Lu Microsoft ASP .NET 2 16th Feb 2009 09:51 AM
Leftover Connections in Connection Pool (connection leak) hiriumi@gmail.com Microsoft ADO .NET 2 25th Jan 2007 04:09 AM
Connection Pool Time Out =?Utf-8?B?ZWQ=?= Microsoft ADO .NET 4 7th Jun 2006 08:12 PM
How do you uniquely identify a connection in a connection pool? =?Utf-8?B?RG91ZyBSYW1pcmV6?= Microsoft ADO .NET 7 13th Oct 2005 03:23 PM
connection in connection pool with pooling=false Jason Collins Microsoft ADO .NET 10 22nd Jun 2004 01:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 PM.