gaoy_du 发表于 2015-11-9 13:53:55

linux下启动 ServerAgent插件成功,但jmeter运行脚本时无法连接到linux进行监控

jmeter的环境搭在Windows上,服务器搭在linux上,使用perfmon插件时,在Windows上启动 ServerAgent.bat后可以正常监控,但在linux上启动 ServerAgent.sh后再运行jmeter脚本时perfmon插件连接超时,哪位大神帮帮忙啊?

gaoy_du 发表于 2015-11-9 14:06:55

报错信息如下:
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:25

报错信息如下:
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:05

1. 检查linux上端口是否启动,命令netstat -apnt|grep 4444       (端口按照自己定义,命令来自redhat linux系统)
2. 检查jmeter机器到linux防火墙:telnet ip 4444
通过就没问题了

tikiLv 发表于 2016-4-7 19:35:47

o蜗牛快跑o 发表于 2015-12-26 19:39
1. 检查linux上端口是否启动,命令netstat -apnt|grep 4444       (端口按照自己定义,命令来自redhat lin ...

最近也遇到这个问题,折腾了好久还是没法连接,按照提示验证了下
1.服务端端口4444已经启动
2.telnet 服务端 失败,这个应该怎么处理?开启linux的防火墙服务吗?
求大神赐教:handshake

tikiLv 发表于 2016-4-7 19:37:51

哥们儿,你这个问题解决了吗?求支招儿呀

lzz_168 发表于 2016-6-29 16:52:25

哥们,我也遇到一样的问题了,最后是怎么解决的?求回复,:handshake

smith1982 发表于 2018-11-16 15:52:16

同样遇到这个问题,有人解释吗

475222685@qq.co 发表于 2018-12-28 15:43:53

有人找到答案了吗

475222685@qq.co 发表于 2018-12-28 15:44:16

有人解决了吗
页: [1]
查看完整版本: linux下启动 ServerAgent插件成功,但jmeter运行脚本时无法连接到linux进行监控