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
相关推荐
技术不好的崎鸣同学6 小时前
第一章:PEB结构解析与内存定位
windows·安全·系统安全
江湖人称菠萝包10 小时前
【Windows】《深入浅出Windows API程序设计:编程基础篇》笔记-Chapter1-基础知识
windows·笔记
白山编程大哥10 小时前
Java 迭代器接口详解:从 Iterator 到 ListIterator 的完整指南
java·开发语言·windows
一叶龙洲11 小时前
Ubuntu从图标到卸载应用
linux·windows·ubuntu
江湖人称菠萝包11 小时前
【Windows】《深入浅出Windows API程序设计:编程基础篇》笔记-Chapter2-Windows窗口程序
windows·笔记
奈斯先生Vector13 小时前
AIGC 视频生成实战:用 Kling Video 拆解文生视频、图生视频与完整工作流
开发语言·人工智能·windows·python·aigc·音视频
暖焰核心13 小时前
迭代器与模板的结合——stl的list
c++·windows·list
2401_8616786213 小时前
Git 在 Windows 使用
windows·git·elasticsearch
en.en..16 小时前
LVGL 普通函数指针与结构体函数指针原理
linux·windows·microsoft
今夕资源网16 小时前
Windows 本地 HTTPS 配置教程:使用 CertTool 创建自签名证书并部署到宝塔
windows·网络协议·https