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
相关推荐
阿郎_20111 小时前
window10的wsl安装配置ubuntu22.04和docker
运维·windows·ubuntu·docker·容器
junlaii10 小时前
Windows 安装 claude code 教程
windows·ai
非凡ghost13 小时前
CoolUtils PDF Combine(PDF合并工具)
windows·学习·pdf·软件需求
就叫飞六吧14 小时前
JSONPath“隔空取物”思想,直击JSON深处的目标字段
服务器·windows·json
love530love14 小时前
【笔记】ComfyUI “OSError: [WinError 38] 已到文件结尾” 报错解决方案
人工智能·windows·python·aigc·comfyui·winerror 38
Shi_haoliu18 小时前
inno setup6.6.1实例,制作安装包,创建共享文件夹,写入注册表(提供给excel加载项,此文章解释iss文件)
前端·vue.js·windows·excel
nnsix18 小时前
文件系统、分配单元大小 什么意思
windows
Boxsc_midnight19 小时前
【数字人学习之语音合成】Fun-CosyVoice3-0.5B-2512的windows系统中本地部署的方法
windows·学习·cosyvoice3
Zfox_19 小时前
无缝穿越系统边界:节点小宝4.0如何让我的Mac/iOS像访问本地盘一样操控Windows
windows·macos·ios·节点小宝
嵌入式学习和实践20 小时前
Linux/Windows 系统架构查看、安装包选择指南(嵌入式开发场景适配)
linux·windows·系统架构