Using BAM for orchestration performance tuning


In this post I want to demonstrate how to use BAM to investigate potential
slow nodes and processing in your orchestration.

I have created a sample orchestration which has one transformation and one correlation blocks.
So I want to check the durations of:
1. Whole orchestration
2. Transformation
3. Correlation

Let's activate BAM plugin in MS Office 2007



Now I will create a view, which then will be associated with orchestration
Note that while creating view and activity I will not need BizTalk Server or a connection at all.

1. From Add-ins menu open BAM/BAM Activity
2. Click New Activity
3. Type BAMSample in Activity Name
4. Click New Item
5. Name it Orchestration Start, set item type to Business Milestone
6. Add Item Orchestration End
7. Add Item Transformation Start
8. Add Item Transformation End
9. Add Item Correlation Start
10. Add Item Correlation End

11 Click OK
12. Click Ok

Now view will be created

13. Click Next to start wizard
14. Select Create new view
15. Click Next
16. Set view name to BAM Sample View
17. Check all activities
18. Click Next
19. Select all items
20. Click Next
21. Add Durations
22. Orchestration Duration, select Orchestration Start and End , set Seconds for Time Resolution
23. Do same steps for Correlation and Transformation

24. Click Next
25. Add Time Dimention, set name to Time, Display settings set to Year, Month, Day, Minute, Hour,
26. Add Measure Orchestration assign it to Orchestration Duration, set Aggregation to Average
27. Add Measure Transformation assign it to Transformation Duration, set Aggregation to Average
28. Add Measure Correlation assign it to Correlation Duration, set Aggregation to Average
29. Click next until Finish
30.In Pivot Table check all

31. From Menu, click Export XML
32. Run: bm.exe deploy-all DefinitionFile:C:\v1.xml ; where v1.xml is the exported view.
33. From Start Menu open Tracking Profile Editor
34. Click on BAM Activity definition and select BAMSample
35. Click on Event Source
36. Find your deployed orchestration
37. Assign view with orchestration

38. From Manu select Tools/Apply Tracking Profile
39. Start Orchestration , proceed some files
40. Open BAM Portal
41. Check report



Comments

Popular posts from this blog

How to poll database using WCF-SQL adapter

SQL query timeout from application but works fast from SSMS