RFR: 8007806: Need a Throwables performance counter
Kasper Nielsen
kasperni at gmail.com
Tue Feb 12 17:28:40 UTC 2013
Jrockit mission control supports an "exception count" based on exception
type.
I have found the approach of just counting the total number of exception
completely useless.
Mainly because there are methods that throw exceptions as part of the
normal flow. For example, Class.forName() is commonly used to test whether
or not a certain
class is on the classpath.
And most developers will cringe whenever they see an exception count>0 for
an application they think is bug free.
On Fri, Feb 8, 2013 at 6:10 PM, Nils Loodin <nils.loodin at oracle.com> wrote:
> It would be interesting to know the number of thrown throwables in the
> JVM, to be able to do some high level application diagnostics / statistics.
> A good way to put this number would be a performance counter, since it is
> accessible both from Java and from the VM.
>
> http://bugs.sun.com/**bugdatabase/view_bug.do?bug_**id=8007806<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8007806>
> http://cr.openjdk.java.net/~**nloodin/8007806/webrev.00/<http://cr.openjdk.java.net/~nloodin/8007806/webrev.00/>
>
> Regards,
> Nils Loodin
>
More information about the core-libs-dev
mailing list