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
相关推荐
小涛不学习8 小时前
手写线程池(从0实现 ThreadPoolExecutor 核心思想)
windows
twc8299 小时前
大模型生成 QA Pairs 提升 RAG 应用测试效率的实践
服务器·数据库·人工智能·windows·rag·大模型测试
wenlonglanying10 小时前
Windows安装Rust环境(详细教程)
开发语言·windows·rust
polaris063011 小时前
Windows操作系统部署Tomcat详细讲解
java·windows·tomcat
mldlds11 小时前
windows手动配置IP地址与DNS服务器以及netsh端口转发
服务器·windows·tcp/ip
取个名字太难了a12 小时前
DebugActiveProcess 调试流程分析(一)
windows
Java.熵减码农12 小时前
火绒安全软件误杀explorer.exe导致黑屏解决方法
windows
love530love12 小时前
不用聊天软件 OpenClaw 手机浏览器远程访问控制:Tailscale 配置、设备配对与常见问题全解
人工智能·windows·python·智能手机·tailscale·openclaw·远程访问控制
夏末蝉未鸣0113 小时前
Windows环境下载并安装milvus
windows·milvus
葡萄星球13 小时前
win11右键菜单一步改成win10样式
windows