服务为更多用户挂起 [英] Service Hangs for more users

查看:73
本文介绍了服务为更多用户挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有带有netTcp绑定的Wcf服务,该服务用于在客户端之间传输消息,并具有属性

I have Wcf service with netTcp binding used for transferring messages among clients,having attributes 

  [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,
          ConcurrencyMode = ConcurrencyMode.Reentrant,UseSynchronizationContext = false)]

 [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single,
         ConcurrencyMode = ConcurrencyMode.Reentrant, UseSynchronizationContext = false)]

,它具有一些静态字典来存储客户端详细信息和消息.

and it has some static dictionaries to store client details and messages.

问题有时是当用户数超过30时,因此服务在几分钟内没有响应.

The problem is sometimes when the user count is above 30 or so the service doesnt respond for few mins.

关于扩大至少1000个并发用户的服务的任何建议.

Any suggestion to scale up my service for atleast 1000 concurrent users.

具有回调协议的netTcp服务可伸缩性的最佳做法?

best practices for scalability of a netTcp service with callback contract?

推荐答案

您好

我建议您尝试使用serviceThrottling,并且建议您参考下面的链接以获取更多信息.

#为什么只有两个并发请求进行WCF负载测试?

最好的问候

爱德华


这篇关于服务为更多用户挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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