Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET crm
We have created one website in aps.net (Visual Studio 2010). But client complaints that website is very slow it takes too much time to load pages. We are retriveing data from Microsoft Dynamics CRM using WCF service.Our main data we fetches from CRM and other data from SQL server 2008. Most of the data is coming from CRM through WCF . Yet we have failed to find cause of slowness in website.Sometimes CPU usage goes upto 95% To 96%. When we restart server website works fine for sometime.Main server at client side in(US) and development of website is going on in india.
 
Please help what is the main reason behind this slowness.
Posted 16-Feb-13 22:36pm
Edited 19-Feb-13 20:47pm
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This question requires vast research.
We can only suggest some solutions.
 
Developer tools
1. NET Tab
First of all check the developer tools of browsers like "Firebug" (in Firefox), which have different tabs. On "Net" tab, you can see all the requests POST or GET made to your website while loading of any Page.
For each process, you can see all the details and Timeline, which shows how much time the request is taking to get/post the data.
 
So, when your website is running slow, you can see here, which request exactly taking time and find out what you have written in the code for that.
 
Sometimes one image load request can take several minutes and then fail to load, which slows down the website.
 
You need to make a list of all the requests which are taking time to load on the NET tab, and try to research on them.
 
2. Console Tab
Console tab will show you all the errors which your website encounters while loading.
You can correct them.
 
Example - Any resource like javaScript, css etc... failed to load or any javascript error will show up here.
 
Connection
As you are using WCF Services and accessing the CRM, check whether all the connection files are releasing and disposing the connection objects after using them.
 
It is the most important to dispose or close the connections, otherwise the connection pool will be unnecessarily full and will only allow new connections after it releases resources automatically (Garbage Collection), which usually takes time.
 
CRM
Try to make more asynchronous requests in Plug-Ins, Workflows, which will not block the user from doing any tasks further.
 
References -
Refer the below articles and discussions for more suggestions.
1. Optimizing and Maintaining a Microsoft Dynamics CRM 2011 Server Infrastructure[^]
2. Optimizing and Maintaining Client Performance for Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online[^].
3. Please Help - IIS 7 is SLOW!! - WIN 2008 w/ Sharepoint & CRM 4[^]
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 402
1 Nirav Prabtani 258
2 Richard Deeming 250
3 _Amy 195
4 CHill60 175
0 Nirav Prabtani 265
1 OriginalGriff 177
2 _Amy 170
3 Mehdi Gholam 105
4 Maciej Los 90


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 20 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100