0

我在某些服务器中有一个 .net 网络服务。这个网络服务每天都会收到很多请求。有一个 android 项目,可以让很多人使用它并与这个 ws 交换数据。每分钟 20 个请求。

最近我从服务器收到了一些超时,我不知道是什么原因。我写错了web.config吗?还是别的什么?

这是我的配置中的 system.web:

    <system.web>
    <compilation debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
<httpRuntime executionTimeout="9000" maxRequestLength="500000"/>
    <webServices>
        <protocols>
            <add name="HttpSoap12"/>
            <add name="HttpSoap"/>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
    </webServices>
</system.web>

我能做些什么来改进?我可以设置最大请求或最大带宽吗?

4

1 回答 1

3

您需要设置 debug="false" Debug="true" 强制 web 服务器运行单线程

于 2013-05-19T10:59:30.117 回答