标题: linux下启动 ServerAgent插件成功,但jmeter运行脚本时无法连接到linux进行监控 [打印本页] 作者: gaoy_du 时间: 2015-11-9 13:53 标题: linux下启动 ServerAgent插件成功,但jmeter运行脚本时无法连接到linux进行监控 jmeter的环境搭在Windows上,服务器搭在linux上,使用perfmon插件时,在Windows上启动 ServerAgent.bat后可以正常监控,但在linux上启动 ServerAgent.sh后再运行jmeter脚本时perfmon插件连接超时,哪位大神帮帮忙啊?作者: gaoy_du 时间: 2015-11-9 14:06
报错信息如下:
2015/11/09 13:49:06 ERROR - kg.apc.jmeter.perfmon.PerfMonCollector: Problems creating connector java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at kg.apc.perfmon.client.TransportFactory.TCPInstance(TransportFactory.java:91)
at kg.apc.jmeter.perfmon.PerfMonCollector.getConnector(PerfMonCollector.java:243)
at kg.apc.jmeter.perfmon.PerfMonCollector.initiateConnector(PerfMonCollector.java:228)
at kg.apc.jmeter.perfmon.PerfMonCollector.initiateConnectors(PerfMonCollector.java:180)
at kg.apc.jmeter.perfmon.PerfMonCollector.testStarted(PerfMonCollector.java:133)
at org.apache.jmeter.reporters.ResultCollector.testStarted(ResultCollector.java:351)
at kg.apc.jmeter.vizualizers.CorrectedResultCollector.testStarted(CorrectedResultCollector.java:28)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:214)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Unknown Source) 作者: gaoy_du 时间: 2015-11-9 14:08
报错信息如下:
2015/11/09 13:49:06 ERROR - kg.apc.jmeter.perfmon.PerfMonCollector: Problems creating connector java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at kg.apc.perfmon.client.TransportFactory.TCPInstance(TransportFactory.java:91)
at kg.apc.jmeter.perfmon.PerfMonCollector.getConnector(PerfMonCollector.java:243)
at kg.apc.jmeter.perfmon.PerfMonCollector.initiateConnector(PerfMonCollector.java:228)
at kg.apc.jmeter.perfmon.PerfMonCollector.initiateConnectors(PerfMonCollector.java:180)
at kg.apc.jmeter.perfmon.PerfMonCollector.testStarted(PerfMonCollector.java:133)
at org.apache.jmeter.reporters.ResultCollector.testStarted(ResultCollector.java:351)
at kg.apc.jmeter.vizualizers.CorrectedResultCollector.testStarted(CorrectedResultCollector.java:28)
at org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:214)
at org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:336)
at java.lang.Thread.run(Unknown Source) 作者: o蜗牛快跑o 时间: 2015-12-26 19:39
1. 检查linux上端口是否启动,命令netstat -apnt|grep 4444 (端口按照自己定义,命令来自redhat linux系统)
2. 检查jmeter机器到linux防火墙:telnet ip 4444
通过就没问题了作者: tikiLv 时间: 2016-4-7 19:35