manoj agarwal - download.microsoft.com

27

Upload: others

Post on 14-Jan-2022

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Manoj Agarwal - download.microsoft.com
Page 2: Manoj Agarwal - download.microsoft.com

Manoj AgarwalSenior Development LeadBizTalk Server Product TeamMicrosoft India Development Center

Page 3: Manoj Agarwal - download.microsoft.com

Objectives

Techniques for optimizing the infrastructure of the BizTalk Server System

How to increase the throughput and reduce the latency of the system

How to maximizing return on invested hardware and software capital

Page 4: Manoj Agarwal - download.microsoft.com

Performance Tuning

No Silver Bullet

Testing -> Tuning -> Testing

Page 5: Manoj Agarwal - download.microsoft.com

Bottom-up methodology

• Hardware

• Windows

• Network Infrastructure

• SQL Server

• BizTalk Server Databases

• BizTalk Server Applications

Page 6: Manoj Agarwal - download.microsoft.com

Hardware Platform Tuning

Apply BIOS, Firmware and Driver updates

Turn off Hyperthreading

Page 7: Manoj Agarwal - download.microsoft.com

Windows Tuning

Configure Serverfor High network throughput and parallelism

to favor background services

Disk optimizationDefragment Disks

Use stripe sets

File systemDisable creation of short names

Limit the use of file compression or encryption

Page 8: Manoj Agarwal - download.microsoft.com

Windows Tuning Contd…

Anti-virus SoftwareDisable real-time scanning of

SQL Server files

Non-exe file types in BizTalk file-drop locations

Disable network scanning between BizTalk Server and SQL Server

Page 9: Manoj Agarwal - download.microsoft.com

Network Infrastructure Tuning

Buffering (prevent network congestion)

Offloading (remove processing from host CPUs)

Parallelism (subnets)

Page 10: Manoj Agarwal - download.microsoft.com

Bottom-up methodology

Hardware

Windows

Network Infrastructure

• SQL Server

• BizTalk Server Databases

• BizTalk Server Applications

Page 11: Manoj Agarwal - download.microsoft.com

SQL Server Tuning

Pre-allocation and Parallelism

Isolate transaction and data log files

Split TempDB files across multiple files

Turn on T1118 trace flag

Page 12: Manoj Agarwal - download.microsoft.com

BizTalk Database Tuning

Isolate MessageBox with tracking database

Avoid primary messagebox bottleneck

Set MAXDOP to zero on non-messageboxdatabase servers

Verify the BizTalk Server SQL Agent Jobs are running

Configure Purging and Archiving of Tracking Data

Page 13: Manoj Agarwal - download.microsoft.com

BizTalk Application Tuning

Message Size

BAM EventStream APIS

Host configuration

Orchestrations

Page 14: Manoj Agarwal - download.microsoft.com

Message Size

Large message fragment size

Impact on the number of transactions

Available memory

Transaction timeout

SQL Locks

Page 15: Manoj Agarwal - download.microsoft.com

BAM Performance FactorsBAM EventStream APIs

DirectEventStream (DES)

BufferedEventStream (BES)

OrchestrationEventStream (OES)

MessageEventStream (MES)

Page 16: Manoj Agarwal - download.microsoft.com

Host Configuration

Separation of functionalityProvides Scalability

Dedicated tracking host

Disable tracking when not required

MaxReceiveInterval value in the adm_ServiceClass table

Do not cluster hosts unless absolutely necessary

Page 17: Manoj Agarwal - download.microsoft.com

Orchestrations

Use XMLReader instead XMLDocument

Use distinguished fields

Persistence points

Use Appropriate .NET classesHelpers and Services

Entities and Business Objects

Call Vs Start orchestration shape

Impact of correlated messages on throttling

Page 18: Manoj Agarwal - download.microsoft.com

Action Items

Take maximum advantage of your existing investment

Download BizTalk Server 2009 Trial Version

Developer Edition is FREE with MSDN

subscription

Page 19: Manoj Agarwal - download.microsoft.com

Related Content

BizTalk Server Technology Tent Sessions

Break Out Session: Solving Enterprise Integration challenges with BizTalk Server

Break Out Session: Birds of the same feather - BizTalk Server and WCF

Free BizTalk Server certification exam (70-241) at onsite Certification testing centre

Page 20: Manoj Agarwal - download.microsoft.com

Track Resources

BizTalk Server Performance Optimization Guidehttp://www.microsoft.com/downloads/details.aspx?FamilyID=98ecf11a-9a8e-4939-8cef-2bc5536dc792&displaylang=en

BizTalk Server Database Optimizationshttp://msdn.microsoft.com/en-us/library/bb743398.aspx

BizTalk Server Performance Team Bloghttp://blogs.msdn.com/biztalkperformance

Testing BizTalk Server on Hyper-Vhttp://msdn.microsoft.com/en-us/library/cc768537.aspx

Page 22: Manoj Agarwal - download.microsoft.com
Page 23: Manoj Agarwal - download.microsoft.com

© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,

IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 24: Manoj Agarwal - download.microsoft.com

Backup Slides

Page 25: Manoj Agarwal - download.microsoft.com

Investigating Bottlenecks

Initial troubleshooting

Performance Counters

Throughput Vs latency

ScalingScaling Up

Scaling Out

Page 26: Manoj Agarwal - download.microsoft.com

Resolving CPU Bottlenecks

Add multiple processors for multi-threaded applications

Reduce thread count for your process

Page 27: Manoj Agarwal - download.microsoft.com

Resolving memory bottlenecks

Tune memory allocations

Increase the size of windows paging file

Disable non-essential services

Remove unnecessary protocols and drivers

Install additional memory