WCF性能问题 [英] WCF Performace issue

查看:53
本文介绍了WCF性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非常紧急请。



你能告诉我任何建议。?



我们使用Asp.net和vb.net使用WCF服务。

服务托管在一台服务器上,应用程序托管在另一台服务器上。

问题是:当多个用户从他们的终端访问应用程序时,应用程序会挂起一段时间(10到15分钟)。





我这样的wcf服务配置文件。



It''s very urgent Please.

Can you Please give me any suggestion.?

We are using WCF service using Asp.net with vb.net.
The service is hosted in one server and application is hosted in to an other server.
The problem is: When multiple users access the application from their terminals, then the application hangs for a while (10 to 15 mintes).


My wcf service config file like this.

<system.serviceModel>
        <services>
            <service behaviorConfiguration="EstromWcfService.PrincorpBehavior" name="EstromWcfService.Princorp">
                <endpoint address="" binding="wsHttpBinding" contract="EstromWcfService.IPrincorp">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
            <service behaviorConfiguration="EstromWcfService.PrinCorpServiceBehavior" name="EstromWcfService.PrinCorpService">
                <endpoint address="" binding="wsHttpBinding" contract="EstromWcfService.IPrinCorpService">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
            <service behaviorConfiguration="EstromWcfService.EstormPrincorpBehavior" name="EstromWcfService.EstormPrincorp">
                <endpoint address="" binding="wsHttpBinding" contract="EstromWcfService.IEstormPrincorp">
                    <identity>
                        <dns value="localhost"/>
                    </identity>
                </endpoint>
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior name="EstromWcfService.PrincorpBehavior">
                    <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure"/>
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>
                    <serviceTimeouts transactionTimeout="10.00:00:00"/>

                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="false" />
                </behavior>
                <behavior name="EstromWcfService.PrinCorpServiceBehavior">
                    <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure"/>
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>
                    <serviceTimeouts transactionTimeout="10.00:00:00"/>

                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="false"/>
                </behavior>
                <behavior name="EstromWcfService.EstormPrincorpBehavior">
                    <serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure"/>
                    <serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100"/>
                    <serviceTimeouts transactionTimeout="10.00:00:00"/>

                    <serviceMetadata httpGetEnabled="true"/>
                    <serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="false"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>

推荐答案

您必须检查以下内容: -



并发管理< br $>


实例管理



如何在WCF服务合同中维护这些内容。
You have to check following things :-

Concurrency Management

Instance Management

How you have maintained these things in your WCF service contract.


这篇关于WCF性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆