I found a little trick using a heap dump viewer (YourKit in this case, but there may be others). Basically you list all instances of the Thread class, then you find the thread you need by name and open it. Stack variables are marked as <local variable> :

Not all variables here, but all that are passed as arguments to the method are displayed. I wonder if the profiler can solve this problem even better?
Vladimir Ralev
source share