1 Star 0 Fork 0

froce/toolbox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
arthas.sh 880 Bytes
一键复制 编辑 原始数据 按行查看 历史
hhu 提交于 2022-11-14 15:54 . x
#!/bin/bash
if [ -f "arthas-boot.jar" ];then
echo "arthas is exist"
else
wget https://arthas.aliyun.com/arthas-boot.jar
fi
if [ -n "$1" ]; then
echo "-------------get $1 process id start-------------------------------------------"
ps -aux|grep $1
echo "-------------get $1 process id end---------------------------------------------"
echo "\n"
fi
echo "start arthas..."
if [ -n "$3" ]; then
echo "use $2 , $3 port"
export LD_LIBRARY_PATH=/home/ttx/app/jre/lib/amd64 &&/home/ttx/app/jre/bin/java -jar arthas-boot.jar --telnet-port $2 --http-port $3
elif [ -n "$2" ]; then
echo "use $2 port"
export LD_LIBRARY_PATH=/home/ttx/app/jre/lib/amd64 &&/home/ttx/app/jre/bin/java -jar arthas-boot.jar --telnet-port $2
else
echo "default"
export LD_LIBRARY_PATH=/home/ttx/app/jre/lib/amd64 &&/home/ttx/app/jre/bin/java -jar arthas-boot.jar
fi
echo "done"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/froce/toolbox.git
git@gitee.com:froce/toolbox.git
froce
toolbox
toolbox
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385