Arthas 监控安装成 Windows 服务的 Tomcat
Arthas Windows 诊断工具 About 459 words需求
需要使用Arthas监测安装成Windows Services的Tomcat服务。
java -jar
命令
java --add-opens=jdk.attach/com.sun.tools.attach=ALL-UNNAMED -jar .\arthas-boot.jar 2060
说明
使用-add-opens参数是因为使用的Java11,Java8及以前可不加此参数。
直接指定了2060这个pid,因为如果不指定,会发现无法在选择界面看到该pid(进程id可以通过任务管理器查看)。
备注
因为Tomcat安装成Windows服务,所以无法在jps中显示该进程,同样arthas进程选择页面也无法显示该进程。
如果是安装的Adopt OpenJDK,可能java命令是用的jre环境的,需指定jdk环境的java.exe。
as.bat pid
命令
.\as.bat 2060 --ignore-tools
说明
直接指定2060这个进程号。
Java9后需使用--ignore-tools标识。
Views: 5,104 · Posted: 2021-07-24
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Next Post
Today In History
- Telepresence 开发中的常用命令 Views: 2,399 · Posted: 2023-04-08
- Java 中的锁 ReentrantReadWriteLock 读写锁 Views: 2,891 · Posted: 2021-04-08
- Spring Boot 打包本地 jar 包到 war 包中 Views: 2,935 · Posted: 2020-04-08
- Android adb 命令 Views: 6,893 · Posted: 2019-04-08
- JavaScript 页面切换后更改标题 Views: 2,767 · Posted: 2019-04-08
- IDEA 滚轮调节字体大小 Views: 4,432 · Posted: 2019-04-08
- IDEA 去除 Unchecked cast from Object to 提示 Views: 5,536 · Posted: 2019-04-08
- Java 按字典顺序排序请求参数 Views: 7,249 · Posted: 2019-04-08
- Java 储存相同 key 的 map Views: 4,953 · Posted: 2019-04-08
- Java 测试迭代集合耗时 Views: 4,930 · Posted: 2019-04-08
- The temporary upload location [xxxRoot] is not valid Views: 4,339 · Posted: 2019-04-08
- Spring Boot Undertow 上传文件后没有可读权限 Views: 7,804 · Posted: 2019-04-08
- Java8 @FunctionalInterface 注解 Views: 3,136 · Posted: 2019-04-08
- Vue-cli+webpack 配置接口代理解决跨域问题 Views: 4,198 · Posted: 2019-04-08
- PHP 序列化与反序列化 Views: 3,633 · Posted: 2019-04-08
- PHP 关闭 X-Powered-By 信息 Views: 3,000 · Posted: 2019-04-08
- PHP编译安装redis扩展 Views: 3,658 · Posted: 2019-04-08
- PHP Markdown 解析器 Views: 4,150 · Posted: 2019-04-08
- PHP查看配置文件所在位置 Views: 3,454 · Posted: 2019-04-08
- PHP 压缩 HTML 代码 Views: 3,669 · Posted: 2019-04-08
- PhpStorm 设置大括号不换行 Views: 10,034 · Posted: 2019-04-08
- PHP 时间加减 Views: 4,003 · Posted: 2019-04-08
- PHP curl 报错:SSL connect error Views: 4,710 · Posted: 2019-04-08
- PHP 字段对应 MySQL 字段 Views: 3,344 · Posted: 2019-04-08
- ThinkPHP5 设置 Redis 长连接 Views: 7,024 · Posted: 2019-04-08
- ThinkPHP5 设置数据库长连接 Views: 6,896 · Posted: 2019-04-08
- PHP 生成重复固定随机数邀请码 Views: 4,370 · Posted: 2019-04-08
- PHP 使用 json_encode 格式化下标不为 0 开始的数组会转为对象 Views: 4,615 · Posted: 2019-04-08
- PHP 获取毫秒值时间戳 Views: 5,615 · Posted: 2019-04-08
- PHP 设置 json_encode 不转义中文 Views: 4,184 · Posted: 2019-04-08
- PHP 判断函数、类、方法、属性、数组中的 key 是否存在 Views: 6,239 · Posted: 2019-04-08
- Redis 提示没有权限 Views: 6,188 · Posted: 2019-04-08
- Redis 线上禁用命令 Views: 4,262 · Posted: 2019-04-08
- Redis 最大内存策略 Views: 3,029 · Posted: 2019-04-08
- Redis 内存信息 Views: 3,872 · Posted: 2019-04-08
- Redis 使用 bigkeys 命令查找大 key Views: 6,764 · Posted: 2019-04-08
- Redis 运行统计信息 Views: 3,536 · Posted: 2019-04-08
- Redis 实现统计在线人数、每日签到功能 Views: 7,129 · Posted: 2019-04-08
- Redis 使用 HyperLogLog 统计独立 IP 数 Views: 4,921 · Posted: 2019-04-08
- Redis 监控 monitor Views: 4,395 · Posted: 2019-04-08
- Redis 过期时间问题 Views: 3,817 · Posted: 2019-04-08
- Redis 查看连接数 Views: 4,704 · Posted: 2019-04-08
Browsing
Refresh
Loading...
- Go 命令之 godoc Views: 2420
- Jenkins 一直卡在 Setup Wizard 界面解决办法 Views: 3479
- JavaScript 获取 img 图片的绝对路径和相对路径 Views: 2526
- macOS Rust Cargo 添加镜像 Views: 2711
- MySQL/Oracle 更新或替换字符串字段中的部分内容 Views: 5210
- Linux grep/zgrep 提示 Binary file matches Views: 5883
- Linux 之定时任务 crontab 无法启动 Views: 6582
- 不同标签页同步用户登录状态 Views: 3582
- Spring 事务 Views: 2822
- Spring Boot 3 Thymeleaf 获取 HTTP 状态码 Views: 1793