Java Exceptions counter on JVM HotSpot
I believe there are free tools to do it, but even making your own tool is easy. JVMTI will help. Here is a simple JVMTI agent I made to trace all exceptions: #include <jni.h> #include <jvmti.h> #include <string.h> #include <stdio.h> void JNICALL ExceptionCallback(jvmtiEnv* jvmti, JNIEnv* env, jthread thread, jmethodID method, jlocation location, jobject exception, jmethodID … Read more