jprofiler用法
安装
windows安装jprofiler
- 访问
https://www.ej-technologies.com/download/jprofiler/files下载windows平台最新版本jprofiler - 使用超级管理员权限安装
jprofiler_windows-x64_14_0_3.exe
ubuntu安装jprofiler
访问
https://www.ej-technologies.com/download/jprofiler/files下载linux平台最新版本JProfiler for Linux Setup Executable为
jprofiler_linux-x64_14_0_3.sh新增执行权限bashchmod +x jprofiler_linux-x64_14_0_3.sh执行
jprofiler安装程序,根据提示安装jprofilerbashsudo ./jprofiler_linux-x64_14_0_3.sh在
Show Applications面板搜索并打开jprofiler
jprofiler术语
Shallow Size和Retained Size
Shallow Size是指实例自身占用的内存, 可以理解为保存该'数据结构'需要多少内存, 注意不包括它引用的其他实例。
Retained Size是指, 当实例A被回收时, 可以同时被回收的实例的Shallow Size之和
outgoing references和incoming references
outgoing references ,这个对象引用了哪些对象 incoming references ,哪些对象引用了这个对象