是什么限制了 WCF ServiceModelService.Instances?

发布于 2024-07-15 08:43:21 字数 432 浏览 2 评论 0原文

我正在尝试使用 (IIS6/Server2003/BasicHttpBinding) 对 WCF 服务进行负载测试。 该服务按如下方式进行限制:

<serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>

为了评估服务器上的调用数量,我使用了 ServiceModelService 3.0.0.0 性能计数器。 如果我将 maxConcurrentCalls 限制为 20、15、10 或任何更低的值,则实例性能计数器显示 WCF 正在遵守限制。 但是,如果我将 maxConcurrentCalls 更改为 30,我永远无法让实例数超过 24。此外,未完成的呼叫永远不会超过 24。还有什么可能限制 WCF?

I'm attempting to load test a WCF service with (IIS6/Server2003/BasicHttpBinding). The service is throttled as follows:

<serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>

To assess the number of calls on the server I'm using the ServiceModelService 3.0.0.0 performance counters. If I throttle the maxConcurrentCalls down to 20, 15, 10 or anything lower the Instances performance counter show that WCF is respecting the throttling. However, if I change maxConcurrentCalls to 30 I'm never able to get Instances to go above 24. Additionally, Calls Outstanding never goes above 24. What else could be limiting WCF?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是你 2024-07-22 08:43:21

请参阅 为什么 WCF 负载测试只有两个并发请求?

当我看到这个问题时,我的
第一反应是:客户做了
没有真正发送足够的请求到
服务器。 这是为什么? 这里有
原因:

1) 如果使用同步WCF
HttpModule/HttpHandler(由安装
默认),你会得到最大
并发请求数(由
ASP.NET 工作线程的数量)
为 12 * [CPU 数量
服务器]。

2) WCF 节流是
上面指定。

See Why Only Two Concurrent Requests for WCF Load Testing?

When I looked at this question, my
first response is that: the client did
not really send enough requests to the
server. Why is that? Here are the
reasons:

1) If you use the synchronous WCF
HttpModule/HttpHandler (installed by
default), you would get the maximal
number of concurrent requests (held by
that number of ASP.NET worker threads)
as 12 * [Number of CPU for the
Server].

2) WCF throttling is
specified above.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文