jmeter在linux上启动报错:连接拒绝

最近在linux上使用jmeter进行压测时,遇到了下面问题:

使用jmeter-server启动jmeter server报错,提示中的endpoint并不是该server的ip:

server的ip是内网的192.168.60.223,但endpoint却是202.106.199.37,貌似是联通的一个外网ip。

[[email protected]_60_223 bin]# ./jmeter-server

Created remote object: UnicastServerRef [liveRef: [endpoint:[202.106.199.37:48777](local),objID:[114b877d:1535f0bf800:-7fff, -8953048443915791496]]]

Server failed to start: java.rmi.RemoteException: Cannot start. See server log file.; nested exception is:

java.rmi.ConnectException: Connection refused to host: 202.106.199.37; nested exception is:

java.net.ConnectException: 连接超时

An error occurred: Cannot start. See server log file.; nested exception is:

java.rmi.ConnectException: Connection refused to host: 202.106.199.37; nested exception is:

java.net.ConnectException: 连接超时

通过网上各种查询,有人说是hostname在hosts文件中没有配置,这个一般都需要配置吗?

虽然疑问但没有找到别的解决办法,只能试试看:

[[email protected]_60_223 bin]# hostname

host_60_223

修改/etc/hosts文件加入下面的ip hostname

vi /etc/hosts

192.168.60.223 host_60_223

果然跟这个有关,至于为什么现在还不清楚。

[[email protected]_60_223 bin]# ./jmeter-server

Created remote object: UnicastServerRef [liveRef: [endpoint:[192.168.60.223:36259](local),objID:[3d1e428a:1535f20e6c7:-7fff, -6723038591539730142]]]

时间: 2024-10-07 04:33:37

jmeter在linux上启动报错:连接拒绝的相关文章

linux mysql启动报错Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

vi /etc/my.cnf  查看日志文件路径: log-error=/var/log/mysqld.log 查看报错日志: 之前的服务器被别人拿了,所以自己买了台美国vps,根据笔记安装完启动mysql,又启动不了. 查看了错误日志 引用 090321 18:55:03 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data /usr/local/mysql/libexec/mysqld: Ta

RedHat Linux 7 启动报错

系统介绍 :L7最小化安装,随后安装图形化界面,启动报错如下:问题1.SMBus Host Controller not enabled解决方法:1.开机进入单用户模式2.创建/etc/modprob.d/blacklist.conf文件添加一下内容:blacklist i2c_piix4保存3.rebooot启动依然出现错误 问题二.No pending transaction to rollback解决方法:1.开机进入单用户模式systemctl get-default --查看默认运行界

linux上项目报错找不到主机名解决办法

项目报错找不到主机名解决办法 有时候我们的项目在本地运行没问题,但部署到linux服务器上就出错了. 报错:java.net.UnknownHostException: 主机名: 主机名  找不到主机名. 解决方法: 修改服务器上/etc/hosts文件 127.0.0.1  localhost  localhost.localdomain 添加所需的主机名称 或者 127.0.0.1  localhost  localhost.localdomain 127.0.0.1  添加所需的主机名称

Linux服务启动报错日志分析

先使用 systemctl status 服务名称,查看服务运行状态,注意红色字体的错误信息,比如权限不够(关闭selinux试试),端口被占用(netstat -tunlp | grep 端口号): 若仍然无法解决问题,查看Linux系统的日志文件/var/log/messages,再配合grep查看相应信息 从上图可以发现,http服务的配置文件/etc/httpd/conf/httpd.conf的第118行有错误. 总结一下:服务报错一脸懵逼?cat一下/var/log/messages吧

linux网络启动报错

报错信息: shutting down interface eth0: error:device "eth0" (/org/freedsktop/networkMaager/Device/o) disconnecting failed:this device is not active

Linux网卡启动报错Job for network.service failed处理方法

在克隆centos 修改静态IP地址之后,重启网络系统(命令:service network restart 或systemctl restart network.service)报错:job for network.service failed 如下截图 这是由于cat/etc/sysconfig/network-scripts/ifcfg-eno16777736 中HWADDR的地址和ifconfig中的地址不一样,如下图 这里只需要把ifconfig 里的MAC地址添加到.vi/etc/s

项目windows运行正常,而Linux上运行报错: class path resource [kwhRules.json] cannot be resolved to absolute file path because it does not reside in the file system

java.io.FileNotFoundException:class path resource [kwhRules.json] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/root/app/target/app.jar!/BOOT-INF/classes!/kwhRules.json 更改前代码: void initRules() throw

redis在Windows上启动报错

The Windows version of Redis allocates a memory mapped heap for sharing with the forked process used for persistence operations. In order to share this memory, Windows allocates from the system paging file a portion equal to the size of the Redis hea

linux查看与修改交换内存配置(解决zabbix-agent启动报错)

问题 zabbix-agent在一台centos6.5上启动报错: cannot allocate shared memory of size 949056: [28] No space left on device cannot allocate shared memory for collector 检查 # sysctl -a | grep shm kernel.shmmax = 33554432 kernel.shmall = 2097152 kernel.shmmni = 4096 k