当前位置:网站首页>Prepare for pressure test with JMeter and visualvw

Prepare for pressure test with JMeter and visualvw

2022-07-23 20:08:00 Speed turtle

         Because the pressure measurement process should be correct GC For monitoring, you need to install VisualVW, In the process of pressure measurement, because the maximum number of connections of the system is small Address already in use: connect. Report errors , The result of pressure measurement is wrong . Therefore, you need to modify the maximum number of connections and the disconnection time

One 、VisualVW install GC Monitor plug-ins

1. First look at your own jdk edition , Version number at the end .

 2. According to the version number, go to the plug-in official website to find your corresponding version plug-in path

Plug in website :VisualVM: Plugins Centers

Because of my jdk The version number is 65 So it corresponds to the second , Click the link below to enter the page

  After entering the page, copy the plug-in update path , And then to VisualVW Modify your plug-in path .

 3. Change the plug-in center path

Find one's own jdk The installation path , stay bin Under the folder is a jvisualvm.exe, After opening, click “ Tools ”--》" plug-in unit "--》“ Set up ”, And then edit it , Add the path we copied .

 4.GC Plug in installation

Click available plug-ins , Check Visual GC Click on the install , Restart after installation .

Two 、 modify Win Maximum connections of the system

1、 Open the registry :regedit.

2、 find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters.

 

3、 newly build DWORD value ,name:TcpTimedWaitDelay,value:30( Decimal system )

4、 newly build DWORD value ,name:MaxUserPort,value:65534( Decimal system ) Set the maximum number of connections 65534.

 

5、 Restart the system

 

原网站

版权声明
本文为[Speed turtle]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/204/202207231851368135.html