windows本地启动项目并使用arthas调试

下载arthas工具

地址:arthas下载地址

调试

  1. 启动本地项目,并使用jps -l查看相关进程,并找到启动的进程号
  2. 启动arthas
java 复制代码
java -jar arthas-boot.jar

可能遇到问题

java 复制代码
[ERROR] The telnet port 3658 is used by process 9552 instead of target process 11928, you will connect to an unexpected process.
[ERROR] 1. Try to restart arthas-boot, select process 9552, shutdown it first with running the 'stop' command.
[ERROR] 2. Or try to stop the existing arthas instance: java -jar arthas-client.jar 127.0.0.1 3658 -c "stop"
[ERROR] 3. Or try to use different telnet port, for example: java -jar arthas-boot.jar --telnet-port 9998 --http-port -1
shell 复制代码
# 先停止可能存在的其他Arthas实例
java -jar arthas-client.jar 127.0.0.1 3658 -c "stop"
# 重新启动arthas-boot
java -jar arthas-boot.jar
相关推荐
美丽的欣情1 小时前
RK3588 Debian 交叉编译环境搭建(Windows + VMware Debian + CMake)
运维·windows·debian
勤劳打代码2 小时前
Flutter 架构指南 —— windows 平台安装拆解
windows·架构
aramae5 小时前
C++11:现代C++的里程碑
c语言·开发语言·c++·windows·git·后端
执行x5 小时前
wsl2安装+桥接模式+固定IP
linux·windows·ubuntu
做萤石二次开发的哈哈7 小时前
如何接入萤石开放平台 ERTC Windows SDK?
windows·音视频·萤石开放平台
霸道流氓气质7 小时前
Windows 本地搭建 CDC 全链路测试环境(Kafka+Canel+binlog+SpringBoot)
windows·spring boot·kafka
郝开7 小时前
Windows 安装 Ostris AI Toolkit
人工智能·windows·toolkit·ai toolkit
疯狂成瘾者1 天前
Java 常见集合方法
java·windows·python
倒流时光三十年1 天前
MyBatis @MapKey 注解详解
windows·mybatis
生活、追梦者1 天前
【Windows】 CMD 黑窗口命令大全
windows·命令行·cmd·运维技巧