对WCF数据量进行详细介绍

开发 后端
本文主要介绍WCF数据量,怎样运用WCF数据量。这些内容都是一些门户网站和技术论坛找到的,中间可能有不少错误是我没有挑出的,欢迎大家指正。

希望我对WCF数据量的一点经验能给大家带来帮助,下面通过IIS服务器的真实处理,以及代码和异常的使用问题,进行解释说明,下面就把编制的代码一一列数下来,欢迎大家学习研究。

昨天下午在作WCF数据量并发的测试,同时启动40个客户端进程,在碰到比较耗时的服务处理时,IIS服务器返回403错误。异常信息如下:]

  1. System.ServiceModel.Security.MessageSecurityException: System.Net.HttpWebRequest.GetResponse()     
  2. System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)    
  3. Server stack trace:     
  4. System.ServiceModel.Channels.HttpChannelUtilities.ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, 
    WebException responseException, HttpChannelFactory factory)     
  5. System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, 
    HttpWebResponse response, HttpChannelFactory factory, WebException responseException)     
  6. System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.
    WaitForReply(TimeSpan timeout)  System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)     
  7. System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)     
  8. System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)     
  9. System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)     
  10. System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)     
  11. System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)     
  12. Exception rethrown at [0]:     
  13. System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)     
  14. System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)     
  15. terminal.ViolationService.IViolationService.QueryVioImg(String vioSeq)     
  16. terminal.ViolationService.ViolationServiceClient.QueryVioImg(String vioSeq),terminal.Program.Main(String[] args) 

通过各种方法监控WCF数据量的错误消息,可是这些出错的调用都没有到达WCF,所有监测WCF的地方和WCF的TraceLog都没有任何的错误。随后又拿出***法宝wireshark,抓包也看不到任何错误,就是客户端请求了服务器一下,然后IIS就返回了403错误,并报告上面的异常。#t#

于是把WCF的服务部署到了Win2003server的iis6下面。这样程序正常运行不会有任何错误。于是查了一下IIS5.1 造成403错误的原因。原来是IIS5.1的***连接数的问题。于是总结了一下:

同时修改了几个方面:

1.windowsXP SP3的TCP连接数,改为512。(有专门的工具破解)

2.WCF数据量会话数,调用数和实例数

责任编辑:chenqingxiang 来源: Thread Affinity
相关推荐

2009-12-08 16:09:02

WCF消息

2009-12-08 17:08:13

WCF Service

2009-11-09 17:30:20

WCF元数据

2009-12-08 15:19:58

WCF大数据量

2009-12-07 13:55:10

WCF工具

2009-12-08 18:14:53

WCF Service

2009-12-22 15:02:40

WCF限流

2011-04-18 11:13:41

bcp数据导入导出

2010-03-02 16:43:46

2009-11-09 14:15:17

WCF集合类型

2010-02-03 15:09:13

Python 构建工具

2009-12-08 17:34:25

WCF的配置

2009-11-09 13:47:22

WCF Stream操

2009-12-08 18:08:43

WCF服务

2010-01-05 17:06:46

JSON 数据

2010-06-28 15:12:11

SQL Server数

2009-12-22 14:31:27

WCF序列化依赖属性

2022-08-31 15:35:34

数据高效

2009-12-07 14:35:42

WCF异步调用

2009-12-08 16:22:06

WCF代码
点赞
收藏

51CTO技术栈公众号