27

Tuning Biz Talk Server 2009 For Better Performance

Embed Size (px)

Citation preview

Page 1: Tuning Biz Talk Server 2009 For Better Performance
Page 2: Tuning Biz Talk Server 2009 For Better Performance

BizTalk Server 2009: Performance Tuning

Manoj AgarwalSenior Development LeadBizTalk Server Product TeamMicrosoft India Development Center

Page 3: Tuning Biz Talk Server 2009 For Better Performance

Objectives

Techniques for optimizing the infrastructure of the BizTalk Server SystemHow to increase the throughput and reduce the latency of the systemHow to maximizing return on invested hardware and software capital

Page 4: Tuning Biz Talk Server 2009 For Better Performance

Performance Tuning

No Silver BulletTesting -> Tuning -> Testing

Page 5: Tuning Biz Talk Server 2009 For Better Performance

Bottom-up methodology

•Hardware

•Windows

•Network Infrastructure

•SQL Server

•BizTalk Server Databases

•BizTalk Server Applications

Page 6: Tuning Biz Talk Server 2009 For Better Performance

Hardware Platform Tuning

Apply BIOS, Firmware and Driver updatesTurn off Hyperthreading

Page 7: Tuning Biz Talk Server 2009 For Better Performance

Windows Tuning

Configure Serverfor High network throughput and parallelismto favor background services

Disk optimizationDefragment DisksUse stripe sets

File systemDisable creation of short namesLimit the use of file compression or encryption

Page 8: Tuning Biz Talk Server 2009 For Better Performance

Windows Tuning Contd…

Anti-virus SoftwareDisable real-time scanning of

SQL Server filesNon-exe file types in BizTalk file-drop locations

Disable network scanning between BizTalk Server and SQL Server

Page 9: Tuning Biz Talk Server 2009 For Better Performance

Network Infrastructure Tuning

Buffering (prevent network congestion)Offloading (remove processing from host CPUs)Parallelism (subnets)

Page 10: Tuning Biz Talk Server 2009 For Better Performance

Bottom-up methodology

Hardware

Windows

Network Infrastructure

•SQL Server

•BizTalk Server Databases

•BizTalk Server Applications

Page 11: Tuning Biz Talk Server 2009 For Better Performance

SQL Server Tuning

Pre-allocation and ParallelismIsolate transaction and data log filesSplit TempDB files across multiple filesTurn on T1118 trace flag

Page 12: Tuning Biz Talk Server 2009 For Better Performance

BizTalk Database Tuning

Isolate MessageBox with tracking databaseAvoid primary messagebox bottleneckSet MAXDOP to zero on non-messagebox database serversVerify the BizTalk Server SQL Agent Jobs are runningConfigure Purging and Archiving of Tracking Data

Page 13: Tuning Biz Talk Server 2009 For Better Performance

BizTalk Application Tuning

Message SizeBAM EventStream APISHost configurationOrchestrations

Page 14: Tuning Biz Talk Server 2009 For Better Performance

Message Size

Large message fragment sizeImpact on the

number of transactionsAvailable memoryTransaction timeoutSQL Locks

Page 15: Tuning Biz Talk Server 2009 For Better Performance

BAM Performance FactorsBAM EventStream APIs

DirectEventStream (DES)BufferedEventStream (BES)OrchestrationEventStream (OES)MessageEventStream (MES)

Page 16: Tuning Biz Talk Server 2009 For Better Performance

Host Configuration

Separation of functionalityProvides Scalability

Dedicated tracking hostDisable tracking when not requiredMaxReceiveInterval value in the adm_ServiceClass tableDo not cluster hosts unless absolutely necessary

Page 17: Tuning Biz Talk Server 2009 For Better Performance

Orchestrations

Use XMLReader instead XMLDocumentUse distinguished fieldsPersistence pointsUse Appropriate .NET classes

Helpers and ServicesEntities and Business Objects

Call Vs Start orchestration shapeImpact of correlated messages on throttling

Page 18: Tuning Biz Talk Server 2009 For Better Performance

Action Items

Take maximum advantage of your existing investmentDownload BizTalk Server 2009 Trial Version

Developer Edition is FREE with MSDN subscription

Page 19: Tuning Biz Talk Server 2009 For Better Performance

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: Tuning Biz Talk Server 2009 For Better Performance

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 21: Tuning Biz Talk Server 2009 For Better Performance

question & answer

Page 22: Tuning Biz Talk Server 2009 For Better Performance

धन्यवा�दઆભા�ર ধন্য�বা�দ

ਧੰ�ਨਵਾ�ਦ

ଧନ୍ୟ�ବା�ଦ

நன்றி�

ధన్య�వాదాలు� ಧನ್ಯ�ವಾ�ದಗಳು

നി�ങ്ങള്‍‌ക്ക്� നിന്ദി�

Page 23: Tuning Biz Talk Server 2009 For Better Performance

© 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: Tuning Biz Talk Server 2009 For Better Performance

Backup Slides

Page 25: Tuning Biz Talk Server 2009 For Better Performance

Investigating Bottlenecks

Initial troubleshootingPerformance CountersThroughput Vs latencyScaling

Scaling UpScaling Out

Page 26: Tuning Biz Talk Server 2009 For Better Performance

Resolving CPU Bottlenecks

Add multiple processors for multi-threaded applicationsReduce thread count for your process

Page 27: Tuning Biz Talk Server 2009 For Better Performance

Resolving memory bottlenecks

Tune memory allocationsIncrease the size of windows paging fileDisable non-essential servicesRemove unnecessary protocols and driversInstall additional memory