Jmeter-server挂在linux系统上

时间:2011-04-27 01:50:07

标签: linux jmeter performance-testing

当我尝试从通过putty连接的服务器运行jmeter-server时,它挂起:

bash-3.2$ ./jmeter-server -t filename.jmx
Using local port: 4000
Created remote object: UnicastServerRef [liveRef: [endpoint:[172.31.120.200:4000]    (local),objID:[1a15acdf:12f949f58d8:-7fff, -8305458059461378367]]]

我做错了什么?它只是挂起。以前这是错误的:

bash-3.2$ ./jmeter-server
Using local port: 4000
Created remote object: UnicastServerRef [liveRef: [endpoint:[172.31.120.200:4000](local),objID:[1fa5aea9:12f94a578a6:-7fff, -8358825329658872549]]]
Problem creating registry: java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
        java.net.BindException: Address already in use
Continuing...
Server failed to start: java.rmi.RemoteException: Cannot start. See server log file.

是什么给出了?

2 个答案:

答案 0 :(得分:1)

端口1099是jmeter服务器的默认端口,这意味着您已经启动了jmeter服务器。我认为你应该首先杀死它,然后尝试开始:

ps ax | grep jmeter

kill -9 PID (from previous command)

在开始远程测试之前,我认为你应该阅读文档,似乎你做错了:http://jmeter.apache.org/usermanual/jmeter_distributed_testing_step_by_step.pdf

答案 1 :(得分:0)

看起来您需要将错误信息中的jmeter SERVER_PORT更改为非“1099”数字。