There are many articles in MSDN talk about the performance issue of Sql
server, you can get more information from them.
The article below talks about the performance compasion of different Data
Assess techniques.
http://msdn.microsoft.com/library/de...us/dnbda/html/
bdadotnetarch031.asp
Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| X-Tomcat-ID: 284955570
| References: <OoHAQ8$lDHA.2068@TK2MSFTNGP09.phx.gbl>
<MPG.19ff8c2c113993fd9898dc@msnews.microsoft.com >
<#PjT8IBmDHA.2528@TK2MSFTNGP12.phx.gbl>
<MPG.19ffadadca35ae5b9898e0@msnews.microsoft.com >
<enRdz3BmDHA.372@TK2MSFTNGP11.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From:
v-jetan@online.microsoft.com ("Jeffrey Tan[MSFT]")
| Organization: Microsoft
| Date: Wed, 22 Oct 2003 10:24:03 GMT
| Subject: Re: The .NET blocking problem, thread pools, and other
interesting stuff
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <EWOghaImDHA.1548@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 93
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:193126
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
|
| Hi David,
|
| Thanks for posting in this group.
| Yet no single approach performs better in all scenarios, there is no
| substitute for performance testing using realistic scenarios
| There is no determine number for optimum of connections. It depends on
many
| factors, the best way is testing the suitable number in your environment.
|
| Hope this helps,
|
| Best regards,
| Jeffrey Tan
| Microsoft Online Partner Support
| Get Secure! -
www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights.
|
| --------------------
| | From: "David Sworder" <dsworder@cts.com>
| | References: <OoHAQ8$lDHA.2068@TK2MSFTNGP09.phx.gbl>
| <MPG.19ff8c2c113993fd9898dc@msnews.microsoft.com >
| <#PjT8IBmDHA.2528@TK2MSFTNGP12.phx.gbl>
| <MPG.19ffadadca35ae5b9898e0@msnews.microsoft.com >
| | Subject: Re: The .NET blocking problem, thread pools, and other
| interesting stuff
| | Date: Tue, 21 Oct 2003 14:54:48 -0700
| | Lines: 55
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| | Message-ID: <enRdz3BmDHA.372@TK2MSFTNGP11.phx.gbl>
| | Newsgroups:
|
microsoft.public.dotnet.framework.adonet,microsoft .public.dotnet.languages.c
| sharp
| | NNTP-Posting-Host: rrcs-west-66-27-51-213.biz.rr.com 66.27.51.213
| | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.csharp:193010
| microsoft.public.dotnet.framework.adonet:64215
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| | > Yes, your threadpool should definitely have more configuration etc
| | > available than the built-in one. I'd suggest ramping up threads slowly
| | > (so that if there's a long stream of fairly short-lived jobs, they all
| | > end up being done by the same single thread) and ramping them down
| | > slowly too (having one die per minute, say). I wouldn't go up as far
as
| | > 50 threads though - if you've got 50 concurrent database requests
going
| | > at the same time, that's unlikely to help throughput in the long run.
| | >
| |
| | Thanks for the comments, Jon.
| |
| | On a somewhat related issue, what do you recommend as an optimum
size
| | for a *connection* pool? In my last message, I stated that the default
max
| | size of a connection pool in .NET is 50. I was wrong. It is actually
100!
| | What is Microsoft trying to tell us by setting this value so high, and
how
| | does this reconcile with your suggestion of having no more than 5
threads
| in
| | my personal thread-pool for database access?
| |
| | Regarding MSFT's magic number of 100, are they saying:
| | a) SQL Server can't effectively handle more than 100
simultaneous
| | connections.
| |
| | or...
| |
| | b) A *client* of SQL Server shouldn't have more than 100
| | simultaneous connections open because assuming that each connection
runs
| on
| | it's own thread, the context-switching penalty outweighs the benefits of
| | concurrency.
| |
| | or...
| |
| | c) If a middle tier machine needs to make more than 100
| simultaneous
| | connections to SQL Server, it's time to scale out and get a second
middle
| | tier machine to handle the load.
| |
| | or
| |
| | d) something else entirely?
| |
| | Don't get me wrong -- I don't foresee a situation where 100+
| | simultaneous database connections would be necessary. I'm just trying to
| | understand the logic MSFT is using. If I understand their way of
| thinking, I
| | can better decide for myself how many simultaneous DB connections I
should
| | be allowing.
| |
| | David
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|