首页 > 系统相关 >Arthas之Linux实践

Arthas之Linux实践

时间:2022-11-28 20:15:45浏览次数:32  
标签:Java Linux -- Arthas 实践 result arthas herman

注意:要用Java进程拥有者去运行arthas ,否则权限不够无法监听

--查看Java进程拥有者
ps -ef | grep java | awk {'print $1'}

--通过grep过滤查看并确认Java进程号

ps -ef | grep java | awk {'print $2'}

如用 herman 离线安装 arthas

Linux:  jar包放 /home/herman/arthas-boot.jar

Window:  包放在 c:\Users\herman\.arthas

 

--开启日志
[arthas@44607]options save-result true
--关闭日志
[arthas@44607]options save-result false
日志会异步保存在 {user.home}/logs/arthas-cache/result.log;

 

#参数-x代表遍历二3代表三层
watch com.hr.SyncSchoolService  _addNewPosition '{params[0],params[1],returnObj}' -x 3

 

标签:Java,Linux,--,Arthas,实践,result,arthas,herman
From: https://www.cnblogs.com/oioele/p/16933457.html

相关文章

  • linux死机
    请教,我用的MT7621双核CPU,经常出现stallonCPU的情况,<3>INFO:rcu_sched_statedetectedstallonCPU0(t=2500jiffies)<3>INFO:rcu_bh_statedetectedstallsonCPUs......
  • linux 串口调试
    linux串口调试使用串口转USB线查看串口是否识别出来❯ls-l/dev/ttyUSB*crw-rw----1rootdialout188,011月2818:54/dev/ttyUSB0添加用户到dialout用户组s......
  • Linux中的磁盘管理
    目录​​目录​​​​磁盘管理命令​​​​向服务器添加硬盘​​​磁盘分区​​​分区模式之MBR分区​​​​分区模式之GPT分区​​​分区操作​​​Linux中的MBR分区​​​......
  • FileZilla连接Linux服务器(Ubuntu)
    目录​​目录​​​​前言​​​​FileZilla使用ubuntu用户密钥的形式连接​​​​FileZilla使用root用户密码的形式连接​​​​参考​​前言这里使用的是Ubuntu服务......
  • Linux中Web环境memcached和redis安装(FOR PHP)
    目录​​目录​​​​前言​​​phpmemcached扩展安装​​​服务器端安装​​​​客户端安装​​​设置memcached开机自启脚本​​​创建脚本​​​​设置服务​​​​服务......
  • Linux基础第三章:Linux软件安装及yum本地库创建
    一、Linux软件安装1、Rpm包安装2、yum仓库安装  二、yum本地库建立 一、Linux软件安装软件安装共2种安装方式,通过rpm包安装或通过yum仓库库安装。1、Rpm包安装......
  • 【Linux】基本操作命令
    Linux基础操作命令:Linux基础操作命令:关机重启命令:用户切换:注销:用户管理:添加用户:关机重启命令:shutdown-hnow #立刻关机 shutdown-h1 #1分钟后关机 ......
  • Linux中的网络管理——网络配置及命令
    目录​​目录​​​Linux网络配置​​​ifconfig命令​​​Linux网络配置文件​​​网卡信息文件​​​​主机名文件​​​​DNS配置文件​​​VMWare中Linux的网络参数配置......
  • Linux中Web环境安装php的扩展
    目录文章目录​​目录​​​​前言​​​​安装imagick扩展​​​​安装ImageMagick​​​​安装php扩展imagick​​​​安装PDO扩展​​​​安装PDO组件​​​​安装PDO_MY......
  • termux安装完整linux(ubuntu)、python、vscode-web
    1安装Ubuntu#需要先安装proot-distroaptinstallproot-distro#安装ubuntuproot-distroinstallubuntu2登录Ubuntuproot-distrologinubuntu3安装指定版本py......