jmeter pressure measurement performance - measured during the Performance of common commands

In order to run linux environment .jmx file:
jmeter -n -t wenjianming.jmx -l shengchengwenjian.jtl
Description:
wenjianming.jmx: is (the file name needs to run) saved by gui environment jmx file
shengchengwenjian.jtl: running kmx files generated result file
Jmx operation need to be stored in jmeter linux environment, the need to have dependencies on the location of the corresponding
Whether the normal command in linux environment pressure measurement results:
cat log.jtl
Description:
log.jtl: This file is specified in the command above generates a file name
Log display 200 indicates that the request success
Server / database resource monitoring command:
./nmon -f -s 60 -c 2100
Description:
60: it refers to data collected every 60 seconds
2100: refers to the collected data 2100 times
In order to generate the icon from the dispute, generally less than the number of collecting pressure measurement time (the number depends on pressure measurement collection time)
ps -ef | grep nmon: view the process, the process can be determined by looking at nmon command is performed normally
See the process of command:
ps -ef | grep jstat the command to view the process id corresponding to the request (jstat) of
The jps command to view all the java service process id
fgc monitor command:
Basic commands (jstat) jstat -gc 777 1000
Description:
777: process id
1000: data collected every 1 second (1000ms)
Extended command: nohup jstat -gc 777 30000 >> / data / app / bin / fgc.txt &
Description:
This command is used to monitor the situation fgc is put in the background
30000: 30000ms collect data once
>> / data / app / bin / fgc.txt: file storage location
nohup command &: background, mission plans, without interrupting Log
实时查看资源使用情况的命令:
top -Hp pid 查看对应进程中所有线程对资源的使用情况
top -p pid  查看对应进程对资源的使用情况
查看cpu的个数,cpu的核数,多核超线程数的命令:
查看cpu的个数(物理):cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l   (2)
查看cpu的核数(每个):cat /proc/cpuinfo| grep "cpu cores"| uniq        (10)
查看逻辑cpu的个数:cat /proc/cpuinfo| grep "processor"| wc -l          (20)
//总核数 = 物理CPU个数 X 每颗物理CPU的核数                 (2*10=20)
//总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数        (2*10*1=20)每个核有一个超线程
我们通常说的多少核cpu指的是逻辑cpu的个数
注释://存在某些服务启动的时候,会提示没有该启动命令
启动文件,提示文件不存在,输入此命令即可:dos2unix -o dump.sh restart.sh start.sh stop.sh

Guess you like

Origin www.cnblogs.com/yj-lm/p/11526427.html