WCF數(shù)據(jù)量實(shí)例分析

這篇文章主要講解了“WCF數(shù)據(jù)量實(shí)例分析”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“WCF數(shù)據(jù)量實(shí)例分析”吧!

創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)營(yíng)銷推廣、網(wǎng)站重做改版、本溪網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5高端網(wǎng)站建設(shè)、商城網(wǎng)站制作、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁(yè)設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為本溪等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

在作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)用都沒有到達(dá)WCF,所有監(jiān)測(cè)WCF的地方和WCF的TraceLog都沒有任何的錯(cuò)誤。隨后又拿出***法寶wireshark,抓包也看不到任何錯(cuò)誤,就是客戶端請(qǐng)求了服務(wù)器一下,然后IIS就返回了403錯(cuò)誤,并報(bào)告上面的異常。

于是把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ù)

感謝各位的閱讀,以上就是“WCF數(shù)據(jù)量實(shí)例分析”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)WCF數(shù)據(jù)量實(shí)例分析這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!

網(wǎng)站名稱:WCF數(shù)據(jù)量實(shí)例分析
本文鏈接:http://bm7419.com/article14/pscsge.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營(yíng)銷標(biāo)簽優(yōu)化、自適應(yīng)網(wǎng)站域名注冊(cè)、搜索引擎優(yōu)化、建站公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

營(yíng)銷型網(wǎng)站建設(shè)