java - How to know about OutOfMemory or StackOverflow errors ahead of time -
In Java, there is a way to find out whether a stack overflow error or Exception of OutOfMemory can happen soon?
There may be an easy way to adopt, if any memory usage data is able to get the program's view, and if any time before it knows how much memory should be used from The exception is thrown out of that outmirry . But do they know the value?
Stack Overflow for error, there is a way to get the depth of the recursion, and how does it show that what value will Rickerson generate for error?
Before knowing the time before these errors will occur, I think that I can recover this app more beautifully than looking at the crash.
estimate memory errors
I am surprised that I Not mentioned, but you get lots of information to use Java 5/6 memory.
For more information on detecting low memory conditions in Java, see I believe that when you access memory usage to a certain threshold, you can call the notifier to call Are there.
Comments
Post a Comment