AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
CRM
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.01.2012, 20:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
crminthefield: Enable WCF Compression to Improve CRM 2011 Network Performance
Источник: http://blogs.msdn.com/b/crminthefiel...rformance.aspx
==============

If you have ever analyzed network traffic you would notice that IIS will automatically compress many types of content including images, jscript, and css pages. Compression is used improve the network performance by decreasing the number of round trips required to transfer data from the server to the client machine.

The CRM 2011 Outlook client uses WCF to retrieve data from the server. By default IIS will not compress WCF responses which have a mimeType of  'application/soap+xml;charset=utf-8'.  Since the WCF traffic is not compressed you may notice there is increased network traffic or performance is degraded when comparing CRM 2011 to CRM 4.0.  Typically I have seen a 30-40% reduction in response size once compression is enabled for the WCF responses. However once SSL is enabled on the CRM website the compression can reduce the size by 80-90%.

Below is a chart showing response size before and after compression is enabled within IIS. This is captured from a non-customized CRM 2011 environment with the sample data loaded. This shows improvements when loading the various views in the Outlook client.



No Compression

Compression

Compression + SSL

Activities View

Bytes Sent: 82,234

Bytes Received: 971,139

Bytes Sent: 82,234

Bytes Received: 722,786

Bytes Sent: 53,249

Bytes Received: 36,658

Accounts View

Bytes Sent: 105,084

Bytes Received: 219,102

Bytes Sent: 105,084

Bytes Received: 149,424

Bytes Sent: 67,586

Bytes Received: 25,837

Contacts View

Bytes Sent: 78,286

Bytes Received: 177,504

Bytes Sent: 78,286

Bytes Received: 122,090

Bytes Sent: 50,283

Bytes Received: 19,791

Leads View

Bytes Sent: 78,286

Bytes Received: 202,589

Bytes Sent: 78,286

Bytes Received: 141,021

Bytes Sent: 50,274

Bytes Received: 19,769



How to Enable WCF compression.

You may enable compression either by using a command line or by manually modifying the ApplicationHost.config file on the CRM Server. Below are the steps for each process.

Note: You may notice an increase in CPU utilization with compression enabled so be sure to monitor CPU accordingly.
Enable compression using a command line.

a. Open the Command Prompt on the CRM Server.

b. Run the following command:    

%SYSTEMROOT%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /+"dynamicTypes.[mimeType='application/soap%u002bxml; charset=utf-8',enabled='true']" /commit:apphost

c. Reset IIS for the setting to take effect.    

 

Enable compression by manually updating the ApplicationHost.Config

<blockquote> a. On the CRM Server Navigate to: C:\Windows\System32\Inetsrv\Config\applicationHost.config and open it with notepad.


b. Search for the Section: <b><i>“
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: How to Enable WCF Tracing for the CRM 2011 Outlook Client Blog bot Dynamics CRM: Blogs 0 08.11.2011 20:11
crminthefield: CRM Online Performance Troubleshooting Ideas Blog bot Dynamics CRM: Blogs 0 01.11.2011 03:13
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 4 Blog bot Dynamics CRM: Blogs 0 24.09.2011 01:16
crminthefield: Microsoft Dynamics CRM 4.0 and 2011 Update Rollup Release Dates, Build Numbers, and Collateral Blog bot Dynamics CRM: Blogs 0 24.08.2011 02:11
Microsoft Dynamics CRM Team Blog: Microsoft Dynamics CRM 2011 ~ Online Test Drive Guide Blog bot Dynamics CRM: Blogs 0 05.08.2011 20:13

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 03:46.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.