Search code examples
javabtrace

How to use btrace


I want to study btrace.

java process user is yubaofu

yubaofu@btrace sudo sh /home/yubaofu/study/btrace/bin/btrace 24234 JInfo.class
well-known file is not secure

yubaofu@btrace sh /home/yubaofu/study/btrace/bin/btrace 24234 JInfo.class
Connection refused

I find a similar issue

how to solve it ?

os:ubuntu12
jdk:jdk7


Solution

  • You should check the file /tmp/hsperfdata_$USER/$PID. what's the $USER exactly ? Make sure it's the same user that you initialize btrace with.