Search code examples
javaremote-debuggingtrace

How to trace a java application running on a remote host


I know the tool btrace that allows you to print the method calls as they are executed. But it doesn't seem to work for a java app running on a remote host.

I don't need a thread dump. I what to see what classes and methods are affected when a particular use case is executed. They should be printed as soon as they are called. How to achieve it?


Solution

  • Ok, finally I've found a tool that is able to do this:

    InTrace

    http://mchr3k.github.io/org.intrace/

    It doesn't take process ID as parameter but intstead of if host name of IP address and port number of a remote host. So it clearly works with remote java processes.

    I've already tested it myself. It prints all I need - full class name, method name, arguments and even line number.