当前位置:网站首页>Use of JMeter easynmon

Use of JMeter easynmon

2022-06-25 00:20:00 Dream_ xang

Jmeter-easyNmon Use

In this paper, Linux Environment , How to use easyNmon Monitor the server CPU、 Memory 、 network card 、 Read / write rate, etc .

One 、EasyNmon Download and install
1. download

easyNmon: An automatic monitor and generate HTML Tools for formatting reports .
easyNmon download Extraction code :jz2l
Find the version you need , What I use here is 1.3 edition .

2. install

Once the download is complete , copy to Linux Server , Use the command to unzip

tar -zxf easyNmon.tar.gz
3. start-up

After decompression , Open folder easyNmon, Start... With the following command :( Choose your own way )

./easyNmon  # The front desk starts , Console disconnect service stop 
./easyNmon &  # Background start , The console disconnect service also stops 
nohup ./easyNmon > easyNmon.log &  # Background start , The console disconnect service is still running 

 stay easyNmon Under the table of contents , Input  ./easyNmon -h  Check out the information 

Get into easyNmon Directory , There will be four files
 Insert picture description here
report The test report is stored in the .

4. Modify the port

The default port is 9999, If you need to modify the access web Address port of the page , You need to modify it yourself , The order is

./easyNmon -p  Port number 

./easyNmon -p 1234  # The front desk starts , Console disconnect service stop 
./easyNmon -p 1234 &  # Background start , The console disconnect service also stops 
nohup ./easyNmon -p 1234 > easyNmon.log &  # Background start , The console disconnect service is still running 

nohup ./easyNmon &		# start-up 

Two 、Jmeter Set up

1. Set up thread group

setUp Thread Group and tearDown Thread Group
 Insert picture description here
Set up a controller that executes only once in the thread group :
 Insert picture description here
Add startup easyNmon Request :
 Insert picture description here
Parameters n File name for generating report ,
Parameters t For monitoring duration ( Units of minutes ),
Parameters f For monitoring frequency , Every how many seconds ;

Add stop easyNmon Request :
 Insert picture description here
Be careful : Stop is not the end , Adjusted Close The service will be shut down , You need to turn it on again .

Opening method :
  1. open easyNmon Catalog , Enter and execute :
./easyNmon
./nmon
  1. Start and execute jmeter Script
    perform jmeter Script time , Because you call start first easyNmon service , Will be in easyNmon See the following prompt in the directory , There will also be stop A hint of .
     Insert picture description here
  2. If there are no steps 2 Tips in , close jmeter Script , Repeat the steps 1 The instructions in , Turn it on again easyNmon service .

report Middle Report :
 Insert picture description here
open index.html You can view the results
 Insert picture description here

Be careful :

  1. If jmeter The client connects to the server remotely , You can't generate report When testing the report , Be careful easyNmon Start the configuration of desired parameters , Before, you only need to configure n、t, Now you need to configure n、t、f.
  2. The server time should be adjusted to be consistent with the actual time .
    1.  Check the time and date 
     command  : "date"
    2. Set time and date 
     for example : Set the system date to 2021 year 5 month 19 The order of the day 
     command  : "date -s 5/19/2009"
     Set the system time to afternoon 5 spot 55 branch 55 Second command 
     command  : "date -s 17:55:55"
    3.  Write the current time and date to BIOS, Avoid failure after restart 
     command  : "hwclock -w"
    
  3. The remote connection cannot be made to easyNmon, Check that the server firewall is turned off .
    su root, press return , Input password , That is, you can switch the current user to root user .
    systemctl stop firewalld, press return , Will turn off the firewall service .
    systemctl status firewalld, press return , You can see that the anti-inflammatory wall service has been turned off .
    
原网站

版权声明
本文为[Dream_ xang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202210550590814.html