- 博客(7)
- 收藏
- 关注
原创 ConcurrentModificationException
发生ConcurrentModificationException场景分析 循环list并删除list中的元素,code: public class ConcurrentModificationExceptionTest { public static void main(String[] args) { // 初始化包含0-9共10个Integer对象的ArrayList;
2016-05-28 12:26:53 251
原创 Java动态代理实现原理浅析
代码编写接口编写 public interface TargetInterface { void targetMethod(); }实现类编写 public class Target implements TargetInterface { @Override public void targetMethod() { System.out.println("target m
2016-05-28 12:26:12 209
原创 JVM类加载机制
类生命周期类生命周期类从被加载到虚拟机内存开始,到写在为止,它的整个生命周期包括: 加载(Loading)–>验证(Verification)–>准备(Preparation)–>解析(Resolution)–>初始化(Initialization)–>使用(Using)–>卸载(Unloading)。其中验证、准备、解析3个部分统称为链接(Linking)。Created with Raphaë
2016-05-28 12:25:35 188
原创 jstat命令
jstat命令的格式如下:jstat [-options] [vmid] [间隔时间/毫秒] [查询次数]常见的options有:l class (类加载器) l compiler (JIT) l gc (GC堆状态) l gccapacity (各区大小) l gccause (最近一次GC统计和原因) l gcnew (新区统计) l gcnewcapacit
2016-05-28 12:24:46 219
原创 JVM参数总结及调优
JVM参数总结 参数 描述 UseSeialGC 虚拟机运行在client模式下的默认值;使用Serial+SerialOld的收集器组合进行内存回收 UseParNewGC 使用ParNew+SerialOld的收集器组合进行内存回收 UseConcMarkSweepGC 使用ParNew+CMS+SerialOld的收集器组合进行内存回收,SerialOld收集器做
2016-05-28 12:23:53 241
原创 JVM内存划分与GC机制
JVM内存划分 <> 栈 本地方法栈1 堆 方法区 程序计数器 线程私有 true true false false true 定义异常 StackOverFloorError2 & OutOfMemoryError3 OutOfMemoryError OutOfMemoryError OutOfMemoryError4 null
2016-05-28 12:22:49 224
原创 漫谈索引
目录目录数据库索引聚簇索引非聚簇索引数据库索引类型MySQL索引Oracle索引数据库索引 A database index is a data structure that improves the speed of data retrieval operations on a database table at the cost of additional writes an
2016-05-28 12:21:50 272
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人