linux下启动 ServerAgent插件成功,但jmeter运行脚本时无法连接到linux进行监控
jmeter的环境搭在Windows上,服务器搭在linux上,使用perfmon插件时,在Windows上启动 ServerAgent.bat后可以正常监控,但在linux上启动 ServerAgent.sh后再运行jmeter脚本时perfmon插件连接超时,哪位大神帮帮忙啊? 报错信息如下: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)
报错信息如下:
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)
1. 检查linux上端口是否启动,命令netstat -apnt|grep 4444 (端口按照自己定义,命令来自redhat linux系统)
2. 检查jmeter机器到linux防火墙:telnet ip 4444
通过就没问题了 o蜗牛快跑o 发表于 2015-12-26 19:39
1. 检查linux上端口是否启动,命令netstat -apnt|grep 4444 (端口按照自己定义,命令来自redhat lin ...
最近也遇到这个问题,折腾了好久还是没法连接,按照提示验证了下
1.服务端端口4444已经启动
2.telnet 服务端 失败,这个应该怎么处理?开启linux的防火墙服务吗?
求大神赐教:handshake 哥们儿,你这个问题解决了吗?求支招儿呀 哥们,我也遇到一样的问题了,最后是怎么解决的?求回复,:handshake 同样遇到这个问题,有人解释吗 有人找到答案了吗 有人解决了吗
页:
[1]