5

「BasicHttpBinding」を使用してサーバーに複数の同時リクエストを発行しようとするクライアント プロセスがあります。クライアントはサーバーに対して 10 以上の同時要求を発行しようとしていますが、サーバー ログは、一度に最大 2 つの同時要求しか進行していないことを示しています。これにより、クライアントによって生成されるスループットが明らかに低下しています。クライアント側で何らかの調整が行われているようです。サービスプロバイダーから提供された構成には、次のような動作が含まれています。

        <basicHttpBinding>
            <binding name="BasicHttpBinding_IService" closeTimeout="00:01:00"
                openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="01:00:00"
                allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                maxBufferSize="2047483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2047483647"
                messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                useDefaultWebProxy="true">
                <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="1073741823"
                    maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                <security mode="TransportCredentialOnly">
                    <transport clientCredentialType="Windows" proxyCredentialType="None"
                        realm="" />
                    <message clientCredentialType="UserName" algorithmSuite="Default" />
                </security>
            </binding>
        </basicHttpBinding>

また、クライアントには次の接続管理エントリがあります。

<system.net>
    <connectionManagement>
        <add address="*" maxconnection="10" />
    </connectionManagement>
</system.net>

クライアントでスロットリングが発生するのを防ぎ、WCF サービスへの最大同時要求が 2 つ以上になるようにするにはどうすればよいですか

4

1 に答える 1