OutOfMemoryError 应该catch吗?
来源:互联网 发布:宝宝起名取名软件 编辑:程序博客网 时间:2024/05/21 10:53
see: http://stackoverflow.com/questions/2679330/catching-java-lang-outofmemoryerror
There are a number of scenarios where you may wish to catch an OutOfMemoryError and in my experience (on Windows and Solaris JVMs), only very infrequently is OutOfMemoryError the death-knell to a JVM.
There is only one good reason to catch an OutOfMemoryError and that is to close down gracefully, cleanly releasing resources and logging the reason for the failure best you can (if it is still possible to do so).
0 1
- OutOfMemoryError 应该catch吗?
- Java进程OutOfMemoryError与catch Throwable
- 使用TRY CATCH应该注意的一个小细节
- outOfMemoryError
- outofmemoryerror
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- OutOfMemoryError
- C++下的泛型编程设计模式
- 使用 jsoup 对 HTML 文档进行解析和操作
- LeetCode | Divide Two Integers
- python OpenCV 读取图片显示和复制 (二)
- 【STM32F030探索套件】序列之三 Systick
- OutOfMemoryError 应该catch吗?
- 网页设计:第一眼的魅力
- Ubuntu安装jdk
- 一个最小物联网系统设计方案及源码——Android客户端
- C# webBrowser 自动表单提交问题
- ADM CPU安装mac os x系统
- Ajax工作原理
- 关于ViewPager的数据更新问题小结
- MySQL explain query 结果域值含义