This situation turns naturally in an operational nightmare.
But Java Mission Control can really help you out. Let´s run this code (remember the -XX:+UnlockCommercialFeatures -XX:+FlightRecorder ) :
public class ThrowsException { public static void main(String[] args) { while (true) { try { Thread.sleep(1000); throw new Exception("ciao bella gioia"); } catch (Throwable t) { } } } }
I run the JMC flight recorder, then go to the Code/Exceptions tab and this is what I get:
No comments:
Post a Comment