none
BizTalk Server Performance Tuning- Capture CPU usage and RAM for a period of 2 days

    Question

  • We are facing performance issues in the BizTalk server(Win 2012 R2). When we checked, we could see sudden spikes of CPU usage and memory over 70 percent. I want to monitor the CPU usage and RAM for the next 2 days so that i can analyze the spikes and understand which process is eating up more CPU and RAM. Could you please provide the steps!
    Monday, April 10, 2017 12:28 PM

Answers

  • HI,

    You can capture the cpu usage using the perfmon counters for the CPU. You need to collect the data using a new data collector set.

    Refer below links for some guidelines

    Use PerfMon to Diagnose Common Server Performance Problems 

    How to Record CPU and Memory Usage Over Time in Windows? 

    you might also need to take perfmon counters of BizTalk into consideration 

    Refer BizTalk Perfmon counters 

    Anything in the event log that is suspicious?? any warnings or errors?

    Hope this helps


    Mandar Dharmadhikari


    Monday, April 10, 2017 1:10 PM
    Moderator
  • Hi

    As pointed out, sudden spikes in CPU and RAM is fine - in fact it means that your server resources are not just sitting idle :). 

    If you want to collect RAM/CPU usage data, start up a Data Collector Set and add the 'Processor\% Processor Time' counter (CPU) and the 'Process: Working Set' counter (for RAM). Set these up for all the processess/services on the box and you can check the trend over time.

    Note this file can get big, so watch out for disk space.


    Thanks Arindam

    • Marked as answer by Vinayak12 Monday, April 17, 2017 10:49 AM
    Tuesday, April 11, 2017 7:02 AM
    Moderator

All replies

  • HI,

    You can capture the cpu usage using the perfmon counters for the CPU. You need to collect the data using a new data collector set.

    Refer below links for some guidelines

    Use PerfMon to Diagnose Common Server Performance Problems 

    How to Record CPU and Memory Usage Over Time in Windows? 

    you might also need to take perfmon counters of BizTalk into consideration 

    Refer BizTalk Perfmon counters 

    Anything in the event log that is suspicious?? any warnings or errors?

    Hope this helps


    Mandar Dharmadhikari


    Monday, April 10, 2017 1:10 PM
    Moderator
  • It's very easy using Performance Monitor.

    Instead of the real time Performance Monitor, you create a Data Collector Set.

    Monday, April 10, 2017 3:34 PM
    Moderator
  • Sudden spikes are nothing to worry about... it is continuous utilization that should cause concern. As mentioned by others you can use perfmon to log and record the counters across the various host instances. I'm assuming you have created separate host instances as otherwise you'd have lots of trouble to correlate the BizTalk activity (message/orchestration) with the memory/processor utilization. Having separate hosts (with the message processed counter) would help identify the sudden spurts of activity against inward requests/processing.

    Are we talking single server or multiple servers ? If dealing with multiple servers, it would be better to create a multi-computer perfmon data set on a separate computer. You'd need to install BizTalk/BizTalk counters on this to help you in the task. If dealing with a single server, are you sure that the peaks correspond to BizTalk and not the underlying SQL ? You may have to enable SQL performance counters also in this case.

    Regards.

    Tuesday, April 11, 2017 4:50 AM
  • Hi

    As pointed out, sudden spikes in CPU and RAM is fine - in fact it means that your server resources are not just sitting idle :). 

    If you want to collect RAM/CPU usage data, start up a Data Collector Set and add the 'Processor\% Processor Time' counter (CPU) and the 'Process: Working Set' counter (for RAM). Set these up for all the processess/services on the box and you can check the trend over time.

    Note this file can get big, so watch out for disk space.


    Thanks Arindam

    • Marked as answer by Vinayak12 Monday, April 17, 2017 10:49 AM
    Tuesday, April 11, 2017 7:02 AM
    Moderator
  • You can try our free version of AIMS with the BizTalk agent connected. It will fetch all performance data for servers, hosts and even all ports & orchs (message count, volume and latency).

    You can then use the Analytics section to analyze the information and find the root cause. There is a component there which is called "Top components" which right away will highlight performance issues on hosts, ports, servers etc.

    You can get running right away here http://www.aimsinnovation.com/aims-free

    Tuesday, April 11, 2017 9:13 AM
  • Yes, Shankycheil and Arindam Paul Roy are 100% correct.

    Unless this is having a measurable impact on an SLA, don't worry about it.

    High CPU is not a problem.  You paid for the processors, you should use them.

    Tuesday, April 11, 2017 2:29 PM
    Moderator
  • Are the CPU / mem values climbing? You might not have that info yet, but looking at trends can give you valuable insight into a potential coming issue. If, and just if, the values are climbing this can be some of the first quite visible signs of a potential performance issue. Also, if the values are climbing you definitely want to isolate what is causing this.
    Tuesday, April 11, 2017 11:21 PM