简体   繁体   中英

.NET web service with many requests

i have a .net web-service in some server. this web-service gets lots of requests per day. there is an android project that allot of people using it and exchange data with this ws. something like 20 requests per minute.

recently im getting allot of timeouts from the server and i cant find out what is the reason. did i write the web.config wrong? or it something else?

here is my system.web on my config:

    <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>

what can i do to improve? can i set max requests or max bandwidth?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM