当前位置:网站首页>[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process

[azure microservice service fabric] start the performance monitor in the SF node and set the method of capturing the process

2022-07-07 22:11:00 51CTO

Prerequisite

When we observe SF One of the nodes in the CPU Abnormal conditions , But because it can't be observed with the naked eye for a long time , So you can turn it on Performance Monitor To get the information of each process %Processer Time To analyze .

  1. Already Service Fabric Running and node is Windows operating system
  2. Sure RDP To node

 

Operation steps

Here's how to open Performance Monitor And how to set the capture process :( The first 5, The first 7 Step is the more important setting )

 

1)RDP To the node problem node , Open the start menu and enter “Performance Monitor” .

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _Service Fabric

 

2) stay Performance Monitor in , choice Data Collector Sets -> User Defined -> New

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _ Save the data _02

 

3) Define the name of the collector , And select “Create manually”, then Next

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _ Right click _03

 

4) At present, we only need to collect Performance counter The data of

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _ Right click _04

5) A very critical step , Collect all Process Of Processor Time, And set the collection time to every 10 Collect once in a second (PS: The collection interval can be modified according to the actual situation

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _Service Fabric_05

  Adding Performance counter Yes select as :Process Medium % Processor Time, stay Instances of selected object Choose from all instances

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _Service Fabric_05

6) Choose where to save the file , Click on Finish complete .

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _Service Fabric_07

7) Select the newly created... In the directory structure on the left Data Collector Set, And then in DataCollector01 The right choice Properties, Enter the following page .

  • Because there are too many processes collected , So if you choose Binary Of Log Format Under the circumstances , Only _Total Information , It is not helpful for the analysis process , So the number in the figure 3 You need to choose Comma Separated, use CSV Format to save data .

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _ Right click _08

 

8) After it has been modified , You can put the newly created Data Collector Set Change to start status . When the collection is long enough ( Include at least one regularity CPU The cycle of change ), Stop and save data .

 

9) When the fetch is complete , The final file format is as follows , You can analyze the changes of a single process in the file at a point in time .

 

【Azure Microservices Service Fabric 】 stay SF Node Performance Monitor And how to set the capture process _ Save the data _09

 

When facing problems in a complex environment , The way to check things needs : The turbid and quiet Xu Qing , An Yidong's Xu Sheng . In the clouds , Just so !



原网站

版权声明
本文为[51CTO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207072135077903.html