
JVM
以十
装饰过去,构造现在,设计未来
展开
-
Java内部初始化类成员变量,局部变量不执行初始化
Java成员变量:Java类在生成实例时,jvm会在Java堆中分配一块内存空间,分配到的地址空间存储所有的成员变量,根据成员变量数据类型的不同,拥有不同的默认值,实例如果有赋值则会覆盖掉默认值,否则不做更改——即,无论如何,属性都会拥有初始值Java局部变量(个人理解)The local variable i may not have been initializedJav...原创 2018-12-19 21:21:04 · 1440 阅读 · 0 评论 -
VisualVM failing to find plugins/updates? Solving the 503 error with an updated URL
jvisual下载插件的官方网站已关闭的问题原文地址Have you tried to update or simply see the available plugins for VisualVM (the Java monitoring tool built into the JDK), and found that it fails to respond right away (the ...转载 2018-12-22 06:03:18 · 455 阅读 · 0 评论 -
PermGen and Metaspace
原文地址In this post, we take a look at Metaspace, and explain how to increase the performance of your JVM with a few simple commands.PermGen is an abbreviation for Permanent Generation and it’s a speci...转载 2018-12-22 06:07:32 · 193 阅读 · 0 评论 -
jvisualvm在线调试BTrace插件
写个测试类如下Tip:一定要用JDK8以后版本的工具,否则会出现问题,之前版本的插件地址已经废弃了,新的地址都是域名中包含有github的package a.b.c;public class Test1 { public static void main(String[] args) { System.out.println("main method start!"); whi...原创 2018-12-22 16:52:23 · 574 阅读 · 0 评论