Tuning Biz Talk Server 2009 For Better Performance


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Tuning Biz Talk Server 2009 For Better Performance

  1. 1. Manoj Agarwal Senior Development Lead BizTalk Server Product Team Microsoft India Development Center
  2. 2. 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
  3. 3. Performance Tuning No Silver Bullet Testing -> Tuning -> Testing
  4. 4. Bottom-up methodology • Hardware • Windows • Network Infrastructure • SQL Server • BizTalk Server Databases • BizTalk Server Applications
  5. 5. Hardware Platform Tuning Apply BIOS, Firmware and Driver updates Turn off Hyperthreading
  6. 6. Windows Tuning Configure Server for High network throughput and parallelism to favor background services Disk optimization Defragment Disks Use stripe sets File system Disable creation of short names Limit the use of file compression or encryption
  7. 7. Windows Tuning Contd… Anti-virus Software Disable 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
  8. 8. Network Infrastructure Tuning Buffering (prevent network congestion) Offloading (remove processing from host CPUs) Parallelism (subnets)
  9. 9. Bottom-up methodology  Hardware  Windows  Network Infrastructure • SQL Server • BizTalk Server Databases • BizTalk Server Applications
  10. 10. SQL Server Tuning Pre-allocation and Parallelism Isolate transaction and data log files Split TempDB files across multiple files Turn on T1118 trace flag
  11. 11. BizTalk Database Tuning Isolate MessageBox with tracking database Avoid primary messagebox bottleneck Set MAXDOP to zero on non-messagebox database servers Verify the BizTalk Server SQL Agent Jobs are running Configure Purging and Archiving of Tracking Data
  12. 12. BizTalk Application Tuning Message Size BAM EventStream APIS Host configuration Orchestrations
  13. 13. Message Size Large message fragment size Impact on the number of transactions Available memory Transaction timeout SQL Locks
  14. 14. BAM Performance Factors BAM EventStream APIs DirectEventStream (DES) BufferedEventStream (BES) OrchestrationEventStream (OES) MessageEventStream (MES)
  15. 15. Host Configuration Separation of functionality Provides Scalability Dedicated tracking host Disable tracking when not required MaxReceiveInterval value in the adm_ServiceClass table Do not cluster hosts unless absolutely necessary
  16. 16. Orchestrations Use XMLReader instead XMLDocument Use distinguished fields Persistence points Use Appropriate .NET classes Helpers and Services Entities and Business Objects Call Vs Start orchestration shape Impact of correlated messages on throttling
  17. 17. Action Items Take maximum advantage of your existing investment Download BizTalk Server 2009 Trial Version Developer Edition is FREE with MSDN subscription
  18. 18. 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
  19. 19. Track Resources BizTalk Server Performance Optimization Guide http://www.microsoft.com/downloads/details.aspx?FamilyID=98ecf11a-9a8e-4939-8cef-2bc5536dc792&displaylang=en BizTalk Server Database Optimizations http://msdn.microsoft.com/en-us/library/bb743398.aspx BizTalk Server Performance Team Blog http://blogs.msdn.com/biztalkperformance Testing BizTalk Server on Hyper-V http://msdn.microsoft.com/en-us/library/cc768537.aspx
  20. 20. © 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.
  21. 21. Backup Slides
  22. 22. Investigating Bottlenecks Initial troubleshooting Performance Counters Throughput Vs latency Scaling Scaling Up Scaling Out
  23. 23. Resolving CPU Bottlenecks Add multiple processors for multi-threaded applications Reduce thread count for your process
  24. 24. 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