2020年8月19日

讨论下类加载的顺序问题

摘要: 我们先看一个例子: class A3{ B3 b3 = new B3(); static C3 c4 = new C3(); static{ System.out.println("A3"); } public A3() { System.out.println("A3-init"); } } cl 阅读全文

posted @ 2020-08-19 10:23 MaXianZhe 阅读(122) 评论(0) 推荐(0) 编辑

重要的JVM参数,通用及G1

摘要: -XX:+DisableExplicitGC 禁止使用System.gc(),虽说一般的程序猿也不会这么用,还是加上保险 千万不要设置年轻代大小,G1会动态调节。 -verbose:gc -Xloggc:target/gc.log 一定要设置好gc日志,方便定位 -XX:MaxGCPauseMill 阅读全文

posted @ 2020-08-19 10:14 MaXianZhe 阅读(2676) 评论(0) 推荐(0) 编辑

导航