Groups | Blog | Home
all groups > asp.net webservices > december 2006 >

asp.net webservices : Web Service max out at 20 SQL connections



Erin Loy
12/24/2006 11:13:51 AM
I have been tasked with load testing our .NET 2.0 web service, which is
really just wraps 1 or 2 very simple and light weight SQL queries. Under
light load (less than 20 requests per second), everything works fine. Each
transaction takes about 10-12 ms to complete. As the load increases
(anything more than 20 web requests per second), transactions begin to take
*much* longer (more than 10 seconds or more).



20 SQL Server connections seems to be a hard limit of some kind, not a
performance/hardware limitation,

but the only connection limitation setting I can find in SQL Server 2005 is
"Maximum number of concurrent connections" and is set to 0 (Unlimited
connections).



After investigating further, it looks to me like the number of active
connections to SQL Server never rise above 20 connections (according to the
User Connections performance counter), and web requests are just sitting
idle and waiting for connections to become available.



We are using thread pooling and closing connections appropriately.



My configuration is:

1 server

SQL Server 2005 (Standard version from MSDN subscription)

ASP.NET 2.0



I could really use help on this one.



Thanks,

-Erin

Scott M.
12/24/2006 3:58:38 PM
Have you done anything to adjust connection pooling settings & have you
considered using web service caching?


[quoted text, click to view]

William (Bill) Vaughn
12/24/2006 4:52:15 PM
Are you trying to use MARS? It can exhibit this behavior.

--
____________________________________
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.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

[quoted text, click to view]

Sylvain Lafontaine
12/24/2006 10:34:17 PM
Another possibility (but I'm not sure of this one) is that you don't
explicitely close the opened connections; hence waiting for the garbage
collector to call the dispose method of the Connection objects sometime
after they have got out of scope.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


[quoted text, click to view]

AddThis Social Bookmark Button