
内存
junranhuigu
这个作者很懒,什么都没留下…
展开
-
Java 查看内存的方法
/** * 获取当前系统已使用内存 * */ public static long getSystemMemory(){ Runtime runtime = Runtime.getRuntime(); long total = runtime.totalMemory();//总内存 long free = runtime.freeMemory();//空闲内存 long use =原创 2014-07-07 14:57:17 · 554 阅读 · 0 评论 -
编写各种outofmemory/stackoverflow程序
最近在网上看到一片文章Java工程师成神之路,对其中的 1.1.5. 自己编写各种outofmemory,stackoverflow程序 HeapOutOfMemory Young OutOfMemory MethodArea OutOfMemory ConstantPool OutOfMemory DirectMemory OutOfMemory Stack OutOfMemory原创 2016-02-02 18:03:35 · 2911 阅读 · 1 评论