自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 246

原创 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 198

原创 JVM类加载机制

类生命周期类生命周期类从被加载到虚拟机内存开始,到写在为止,它的整个生命周期包括: 加载(Loading)–>验证(Verification)–>准备(Preparation)–>解析(Resolution)–>初始化(Initialization)–>使用(Using)–>卸载(Unloading)。其中验证、准备、解析3个部分统称为链接(Linking)。Created with Raphaë

2016-05-28 12:25:35 182

原创 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 207

原创 JVM参数总结及调优

JVM参数总结 参数 描述 UseSeialGC 虚拟机运行在client模式下的默认值;使用Serial+SerialOld的收集器组合进行内存回收 UseParNewGC 使用ParNew+SerialOld的收集器组合进行内存回收 UseConcMarkSweepGC 使用ParNew+CMS+SerialOld的收集器组合进行内存回收,SerialOld收集器做

2016-05-28 12:23:53 235

原创 JVM内存划分与GC机制

JVM内存划分 <> 栈 本地方法栈1 堆 方法区 程序计数器 线程私有 true true false false true 定义异常 StackOverFloorError2 & OutOfMemoryError3 OutOfMemoryError OutOfMemoryError OutOfMemoryError4 null

2016-05-28 12:22:49 220

原创 漫谈索引

目录 目录 数据库索引 聚簇索引 非聚簇索引 数据库索引类型 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 263

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除