Skip to content

Instantly share code, notes, and snippets.

@kofemann
Last active August 9, 2017 20:45
Show Gist options
  • Save kofemann/1a4dfe32289656353f51b1f6d45a9d53 to your computer and use it in GitHub Desktop.
Save kofemann/1a4dfe32289656353f51b1f6d45a9d53 to your computer and use it in GitHub Desktop.
BTrace script to catch source of clearCacheLocation message
import com.sun.btrace.annotations.*;
import static com.sun.btrace.BTraceUtils.*;
@BTrace
public class PnfsHandler {
@OnMethod(
clazz="diskCacheV111.util.PnfsHandler",
method="clearCacheLocation"
)
public static void onClearLocation() {
println();
println("------------- ClearLocation --------------------------");
jstack();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment