{"push_id":862623068,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"e0f99308f8f9b06ba6546c8a441246e6e3172a62","before":"c015835ce634603f93b3ce9ed0e9b1e7ff97b683","commits":[{"sha":"e0f99308f8f9b06ba6546c8a441246e6e3172a62","author":{"email":"87b8937fc76c820edcdd493d52aa496705eac045@126.com","name":"web"},"message":"增加对非root用户启动的jvm进程的支持\n\n假设当前系统上有3个JVM进程\r\n```\r\npid1  userA\r\npid2  userB\r\npid3  userC\r\n```\r\ncpu 使用率可能是这样的情况\r\n```\r\npid1 tid11  userA   30.0\r\npid1 tid12  userA   15.0\r\npid2 tid13  userB   10.0\r\npid3 tid14     9.0\r\n```\r\n按照之前的脚本方式\r\n\r\n1 如果是root用户直接执行 show-busy-java-threads.sh 是不行的‘\r\n\r\n2 如果 sudo -u userA show-busy-java-threads.sh 那么  userB  userC的jstack的信息是取不到的\r\n\r\n所以只能把sudo -u user 放在脚本里判断\r\n\r\n如果是非root用户执行这个脚本，必须  sudo show-busy-java-threads.sh","distinct":true,"url":"https://api.github.com/repos/liuyangc3/useful-scripts/commits/e0f99308f8f9b06ba6546c8a441246e6e3172a62"}]}