Click here to Skip to main content
14,551,240 members
Rate this:
Please Sign up or sign in to vote.
See more:
We have created one website in (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.
Updated 19-Feb-13 20:47pm

1 solution

Rate this:
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.

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.

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[^]
Member 11617067 10-Sep-15 4:41am
I am also facing the same issue.
I designed the web page for my organization using , which is not having any database connection. In the deign I have used CSS, Ajax extension and JavaScript. Problem is that now it us taking a much more time to load in the intranet also. Please give me a good suggestion to get rid of the issue.
So, as I suggested, use developer tools and narrow down your issues to a specific thing. Then you can decide how to optimize that.

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

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