自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

對(duì)WCF數(shù)據(jù)量進(jìn)行詳細(xì)介紹

開(kāi)發(fā) 后端
本文主要介紹WCF數(shù)據(jù)量,怎樣運(yùn)用WCF數(shù)據(jù)量。這些內(nèi)容都是一些門戶網(wǎng)站和技術(shù)論壇找到的,中間可能有不少錯(cuò)誤是我沒(méi)有挑出的,歡迎大家指正。

希望我對(duì)WCF數(shù)據(jù)量的一點(diǎn)經(jīng)驗(yàn)?zāi)芙o大家?guī)?lái)幫助,下面通過(guò)IIS服務(wù)器的真實(shí)處理,以及代碼和異常的使用問(wèn)題,進(jìn)行解釋說(shuō)明,下面就把編制的代碼一一列數(shù)下來(lái),歡迎大家學(xué)習(xí)研究。

昨天下午在作WCF數(shù)據(jù)量并發(fā)的測(cè)試,同時(shí)啟動(dòng)40個(gè)客戶端進(jìn)程,在碰到比較耗時(shí)的服務(wù)處理時(shí),IIS服務(wù)器返回403錯(cuò)誤。異常信息如下:]

  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) 

通過(guò)各種方法監(jiān)控WCF數(shù)據(jù)量的錯(cuò)誤消息,可是這些出錯(cuò)的調(diào)用都沒(méi)有到達(dá)WCF,所有監(jiān)測(cè)WCF的地方和WCF的TraceLog都沒(méi)有任何的錯(cuò)誤。隨后又拿出***法寶wireshark,抓包也看不到任何錯(cuò)誤,就是客戶端請(qǐng)求了服務(wù)器一下,然后IIS就返回了403錯(cuò)誤,并報(bào)告上面的異常。#t#

于是把WCF的服務(wù)部署到了Win2003server的iis6下面。這樣程序正常運(yùn)行不會(huì)有任何錯(cuò)誤。于是查了一下IIS5.1 造成403錯(cuò)誤的原因。原來(lái)是IIS5.1的***連接數(shù)的問(wèn)題。于是總結(jié)了一下:

同時(shí)修改了幾個(gè)方面:

1.windowsXP SP3的TCP連接數(shù),改為512。(有專門的工具破解)

2.WCF數(shù)據(jù)量會(huì)話數(shù),調(diào)用數(shù)和實(shí)例數(shù)

責(zé)任編輯:chenqingxiang 來(lái)源: Thread Affinity
相關(guān)推薦

2009-12-08 16:09:02

WCF消息

2009-12-08 17:08:13

WCF Service

2009-11-09 17:30:20

WCF元數(shù)據(jù)

2009-12-08 15:19:58

WCF大數(shù)據(jù)量

2009-12-07 13:55:10

WCF工具

2009-12-22 15:02:40

WCF限流

2009-12-08 18:14:53

WCF Service

2009-11-09 14:15:17

WCF集合類型

2011-04-18 11:13:41

bcp數(shù)據(jù)導(dǎo)入導(dǎo)出

2010-02-03 15:09:13

Python 構(gòu)建工具

2010-03-02 16:43:46

2009-11-09 13:47:22

WCF Stream操

2009-12-08 17:34:25

WCF的配置

2009-12-22 14:31:27

WCF序列化依賴屬性

2009-12-08 18:08:43

WCF服務(wù)

2010-01-05 17:06:46

JSON 數(shù)據(jù)

2009-12-08 16:22:06

WCF代碼

2010-06-28 15:12:11

SQL Server數(shù)

2009-12-07 14:35:42

WCF異步調(diào)用

2009-12-08 15:52:10

WCF回調(diào)
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)