Swingbench基準測試-3.2、負載測試-字符模式(charbench)

charbench測試用例

charbench -c ../configs/SOE_Server_Side_V2.xml -cs //127.0.0.1/st -a -v "users,tpm,tps,trans,dml" -rr 1 -rt "00:01" -min 5 -max 5 -r "test-st.xml"

在這裏插入圖片描述
配置參數含義:

-c 使用配置文件:SOE_Server_Side_V2.xml
-cs 指定數據庫連接字符串://127.0.0.1/st
-a 自動運行
-v 顯示運行統計值(使用逗號分隔,不能有空格)
Users:用戶數;
Tpm:每分鐘事務數;
Tps:每秒事務數;
Trans:事務信息,對應swingbench的Transactions頁籤中的Short Name
Dml:包括:查詢、插入、更新、刪除、提交
-r 指定測試結果文件名稱,默認爲results.xml
-rr 控制檯刷新顯示頻率(單位:秒),默認每秒顯示一次;
-rt 設置負載運行時間,格式:hh:mm.sec,默認一直運行;
-min<ms> 設置內部事務最小思考時間;
-max<ms> 設置內部事務最大思考時間;
-vo 輸出測試結果到文件,默認輸出到控制檯;

charbench詳細配置參數

通過charbench -h 命令,可以查看詳細配置參數:

charbench.bat -h
usage: parameters:
 -D <variable=value>           use value for given environment variable
 -a                            run automatically
 -be <stopafter>               end recording statistics after. Value is in
                               the form hh:mm.sec
 -bg                           indicate that charbench will be run in the
                               background
 -bs <startafter>              start recording statistics after. Value is
                               in the form hh:mm.sec
 -c <filename>                 specify config file
 -cf <username>                the location of a crendentials file for
                               Oracle Cloud (ADW/ATP./ExaExp)
 -co <hostname>                specify/override coordinator in
                               configuration file.
 -com <comment>                specify comment for this benchmark run (in
                               double quotes)
 -cpuloc <hostname >           specify/overide location/hostname of the
                               cpu monitor.
 -cpupass                      specify/overide os password of the user
                               used to monitor cpu.
 -cpuuser                      specify/overide os username of the user
                               used to monitor cpu.
 -cs <connectstring>           override connect string in configuration
                               file
 -dbap <password>              the password of admin user (used for
                               collecting DB Stats)
 -dbau <username>              the username of admin user (used for
                               collecting DB stats)
 -debug                        turn on debugging. Written to standard out
 -debugf <debugfile>           turn on debugging. Write output to
                               <debugfile> defaults to debug.log.
 -debugfine                    turn on finest level of debugging
 -di <shortname(s)>            disable transactions(s) by short name,
                               comma separated
 -dt <drivertype>              override driver type in configuration file
                               (thin, oci, ttdirect, ttclient)
 -dumptx                       output transaction response times to file
 -dumptxdir <directory name>   directory for transaction response times
                               files
 -en <shortname(s)>            enable transactions(s) by short name, comma
                               separated
 -env                          display environment configuration
 -f                            force data collection and run termination
                               regardless of state
 -g <groupID>                  distributed group identifier
 -h,--help                     print this message
 -i                            run interactively (default)
 -intermax <milliseconds>      override minimum inter transaction sleep
                               time (default = 0)
 -intermin <milliseconds>      override minimum inter transaction sleep
                               time (default = 0)
 -ld <milliseconds>            specify/overide the logon delay
                               (milliseconds)
 -max <milliseconds>           override maximum intra transaction think
                               time in configuration file
 -min <milliseconds>           override minimum intra transaction think
                               time in configuration file
 -mr                           produce a mini report of the results of a
                               run
 -mt <maxtrans>                maximum tasks to be executed before
                               terminating run
 -nr                           don't produce a results file at the end of
                               a run
 -p <password>                 override password in configuration file
 -r <filename>                 specify results file
 -rr                           specify/overide refresh rate for charts in
                               secs
 -rt <runtime>                 specify/overide run time for the benchmark.
                               Value is in the form hh:mm.sec
 -s                            run silent
 -stats <stats level>          specify level result stats detail (full or
                               simple)
 -u <username>                 override username in configuration file
 -uc <user count>              override user count in configuration file.
 -v <options>                  display run statistics (vmstat/sar like
                               output), options include (comma separated no spaces).
                               trans|cpu|disk|dml|errs|tpm|tps|users|resp|vresp|tottx|trem
 -ver                          display version and exit
 -vo <verboseOutput>           output file for verbose output (defaults to
                               stdout)
 -wc                           wait until all session have disconnected
                               from the database
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章