Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

Can anyone please tell me why my app's performance under WCF is so poor?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ronald S. Cook - 04 Sep 2007 21:43 GMT
Performance in our WCF application is very poor now that we've added a
number of records to tables (not an unrealistic number, though).  After
doing that, we did get "max message size" errors to I bumped that number to
99999999 (see below).

Can anyone please tell me if (1) my config files below look ok, and (2) you
have any other ideas why things might be so slow?

Thanks VERY much for any feedback,
Ron

---------------------------------------------------------------
The App.config in our client looks like this:
---------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
<system.serviceModel>
 <bindings>
  <wsHttpBinding>
   <binding name="mexBinding" maxReceivedMessageSize="99999999">
    <security mode="None"/>
   </binding>
  </wsHttpBinding>
 </bindings>
 <client>
  <endpoint
address="http://BOUCSDEV01:888/COWFeedyardService/Services/Address.svc"
binding="wsHttpBinding" bindingConfiguration="mexBinding"
contract="IAddress" />
  <endpoint
address="http://BOUCSDEV01:888/COWFeedyardService/Services/Age.svc"
binding="wsHttpBinding" bindingConfiguration="mexBinding" contract="IAge" />
  <endpoint
address="http://BOUCSDEV01:888/COWFeedyardService/Services/Animal.svc"
binding="wsHttpBinding" bindingConfiguration="mexBinding" contract="IAnimal"
/>
 </client>
</system.serviceModel>
</configuration>

---------------------------------------------------------------
The Web.config in our service looks like this:
---------------------------------------------------------------

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
 <bindings>
  <wsHttpBinding>
   <binding name="mexBinding" maxReceivedMessageSize="99999999">
    <security mode="None"/>
   </binding>
  </wsHttpBinding>
 </bindings>
 <services>
  <!-- Address -->
  <service name="FRC.COW.Feedyard.Service.FRC.COW.Feedyard.Service.Address"
behaviorConfiguration="AddressBehavior">
   <endpoint address="" binding="wsHttpBinding"
bindingConfiguration="mexBinding"
   contract="FRC.COW.Feedyard.Service.FRC.COW.Feedyard.Service.IAddress"/>
   <endpoint contract="IMetadataExchange" binding="mexHttpBinding"
address="mex" />
  </service>
  <!-- Age -->
  <service name="FRC.COW.Feedyard.Service.FRC.COW.Feedyard.Service.Age"
behaviorConfiguration="AgeBehavior">
   <endpoint address="" binding="wsHttpBinding"
bindingConfiguration="mexBinding"
   contract="FRC.COW.Feedyard.Service.FRC.COW.Feedyard.Service.IAge"/>
   <endpoint contract="IMetadataExchange" binding="mexHttpBinding"
address="mex" />
  </service>
  <!-- Animal -->
  <service name="FRC.COW.Feedyard.Service.FRC.COW.Feedyard.Service.Animal"
behaviorConfiguration="AnimalBehavior">
   <endpoint address="" binding="wsHttpBinding"
bindingConfiguration="mexBinding"
   contract="FRC.COW.Feedyard.Service.FRC.COW.Feedyard.Service.IAnimal"/>
   <endpoint contract="IMetadataExchange" binding="mexHttpBinding"
address="mex" />
  </service>
 </services>
 <behaviors>
  <serviceBehaviors>
   <!-- Address -->
   <behavior name="AddressBehavior" >
    <serviceMetadata httpGetEnabled="true" />
    <serviceDebug includeExceptionDetailInFaults="true" />
   </behavior>
   <!-- Age -->
   <behavior name="AgeBehavior" >
    <serviceMetadata httpGetEnabled="true" />
    <serviceDebug includeExceptionDetailInFaults="true" />
   </behavior>
   <!-- Arrival -->
   <behavior name="ArrivalBehavior" >
    <serviceMetadata httpGetEnabled="true" />
    <serviceDebug includeExceptionDetailInFaults="true" />
   </behavior>
  </serviceBehaviors>
 </behaviors>
</system.serviceModel>
</configuration>
Ollie - 05 Sep 2007 10:46 GMT
have you profiled your application at all? there are many free and good tools
out there to investigate application bottlenecks.

HTH

Ollie Riches

> Performance in our WCF application is very poor now that we've added a
> number of records to tables (not an unrealistic number, though).  After
[quoted text clipped - 103 lines]
>  </system.serviceModel>
> </configuration>

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.