为什么WCF将并发连接限制为5? [英] Why does WCF limit concurrent connections to 5?

查看:215
本文介绍了为什么WCF将并发连接限制为5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WCF服务(basicHttpBinding)托管在Vista上的II7,我期望同时处理许多请求。我试图通过在测试应用程序中调用200个线程并调用WCF服务来加载测试服务。我已经运行这个测试应用程序在同一台机器上的服务器以及多个其他计算机,我总是得到相同的结果 - 使用不超过5名工人。这是一个WCF,HTTP或IIS瓶颈?

I have a WCF service (basicHttpBinding) hosted in II7 on Vista that I expect to handle many requests concurrently. I'm attempting to load test the service by spawing 200 threads in a test app and calling the WCF service. I've run this test app on the same machine as the server as well as multiple other computers and I always get the same result - no more than 5 workers are used. Is this a WCF, HTTP or IIS bottleneck?

推荐答案

这是一个防止拒绝服务攻击的功能。开箱即用,WCF被设计为安全的。
检查服务行为,查看msdn中的maxConcurrentCalls和maxConcurrentSessions配置。我认为限制是10,但我可能错了。

This is a feature to prevent denial of service attack. Out of the box, WCF is designed to be secure. Check the service behavior, look in msdn for maxConcurrentCalls and maxConcurrentSessions configuration. I think the limit is 10, but I could be wrong.

这篇关于为什么WCF将并发连接限制为5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆