WCF を使用して Web サーバーと通信する小さなアプリケーションがあります。このプログラムは約 200 のクライアントで使用されており、各クライアントは 1 分あたり約 5 ~ 20 のリクエストを送信しています。
私がよく得るエラーログを見ると:
00:00:59.9989999 の後に応答を待っている間にリクエスト チャネルがタイムアウトしました
リクエストは次のように行われます。
ClientService Client = new ClientService();
Client.Open();
Client.updateOnline(userID);
Client.Close();
これはapp.configです
<configuration>
<configSections>
</configSections>
<startup><supportedRuntime version="v2.0.50727"/></startup><system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IClientService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="PATH TO SERVICE"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IClientService"
contract="IClientService" name="WSHttpBinding_IClientService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
毎日の「多くの呼び出し」のうち、約 200 ~ 800 件が失敗します。そして約n-1は大丈夫です。何が問題なのか非常に混乱しています。サーバーの統計を見ると、ほとんど汗をかきません。各リクエストの処理には 2 秒未満かかります。送信しているデータは「int」または「非常に小さな文字列」で構成されているため、サイズが原因ではない場合、一貫したエラーが発生するはずです..
提案?