当前位置 : 主页 > 大数据 > 区块链 >

启动Jmeter录制代理进行录制,报 jmeter.protocol.http.proxy.ProxyControl

来源:互联网 收集:自由互联 发布时间:2021-06-22
使用jmeter代理录制Http请求时,启动HTTP(S) Test Script Recorder报jmeter.protocol.http.proxy.ProxyControl, 日志为: 2018/05/19 15:47:05 INFO - jmeter.protocol.http.proxy.ProxyControl: Creating Proxy CA in D:\LT\Jmeter\apach

使用jmeter代理录制Http请求时,启动HTTP(S) Test Script Recorder报jmeter.protocol.http.proxy.ProxyControl,

 

日志为:

2018/05/19 15:47:05 INFO  - jmeter.protocol.http.proxy.ProxyControl: Creating Proxy CA in D:\LT\Jmeter\apache-jmeter-3.0\bin\proxyserver.jks
2018/05/19 15:47:05 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could not initialise key store java.io.IOException:   >> 非法选项:  -ext
尝试 keytool -help <<
Command failed, code: 1
‘keytool -genkeypair -alias :root_ca: -dname "CN=_ DO NOT INSTALL unless this is your certificate (JMeter root CA), OU=Username: liutao, C=CN" -keyalg RSA -keystore proxyserver.jks -storepass {redacted} -keypass {redacted} -validity 7 -ext bc:c‘
    at org.apache.jorphan.exec.KeyToolUtils.genkeypair(KeyToolUtils.java:165)
    at org.apache.jorphan.exec.KeyToolUtils.generateProxyCA(KeyToolUtils.java:232)
    at org.apache.jmeter.protocol.http.proxy.ProxyControl.initDynamicKeyStore(ProxyControl.java:1426)
    at org.apache.jmeter.protocol.http.proxy.ProxyControl.initKeyStore(ProxyControl.java:1353)
    at org.apache.jmeter.protocol.http.proxy.ProxyControl.startProxy(ProxyControl.java:476)
    at org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.startProxy(ProxyControlGui.java:516)
    at org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.actionPerformed(ProxyControlGui.java:390)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatche

解决过程:

1、查看各个原件配置是否正常

2、jmeter下bin目录是否有proxyserver.jks,目录下面确实没有,拷贝进去之后,重启Jmeter问题没有解决

3、

问题解决,可以正常录制。

 PS:作为jmeter新手解决问题之后,会特别高兴。

网友评论