Notice
Recent Posts
Recent Comments
Link
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

감사합니다.

윈도우 서버 성능 수집 - typeperf 본문

Microsoft/Operating Systems

윈도우 서버 성능 수집 - typeperf

springjunny 2018. 6. 14. 23:01

typeperf를 사용하여 윈도우 서버 성능 수집

perfmon 보다 편리하게 사용이 가능하다.

typeperf 옵션

OptionDescription
-?Displays context-sensitive help.
-f <CSVTSV
-cf <filename>Specifies a file containing a list of performance counters to monitor, with one counter per line.
-si <[[hh:]mm:]ss>Specifies the sample interval. The default is one second.
-o <filename>Specifies the path for the output file, or the SQL database. The default is STDOUT (written to the command window).
-q [object]Display a list of installed counters (no instances). To list counters for one object, include the object name. ***EXAMPLE
-qx [object]Display a list of installed counters with instances. To list counters for one object, include the object name.
-sc <samples>Specifies the number of samples to collect. The default is to collect data until CTRL+C is pressed.
-config <filename>Specifies a settings file containing command options.
-s <computer_name>Specifies a remote computer to monitor if no computer is specified in the counter path.
-yAnswer yes to all questions without prompting.


예시) 

typeperf "\Processor)_Total)\% Processor Time"

typeperf "\Processor(_Total)\% Processor time" "\Memory\Available KBytes" -si 1 -o perf.csv

=> 1초마다(-si 1) 두 가지 성능 데이터를 perf.csv 파일로(-o) 저장, -si 기본값은 1초


typeperf 에서 사용할 수 있는 성능 카운터를 파일로 저장하기

typeperf -qx -o counter.txt