Last active
August 9, 2017 20:45
-
-
Save kofemann/1a4dfe32289656353f51b1f6d45a9d53 to your computer and use it in GitHub Desktop.
BTrace script to catch source of clearCacheLocation message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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