Skip to content

jprofiler用法

安装

windows安装jprofiler

  1. 访问https://www.ej-technologies.com/download/jprofiler/files下载windows平台最新版本jprofiler
  2. 使用超级管理员权限安装jprofiler_windows-x64_14_0_3.exe

ubuntu安装jprofiler

  1. 访问https://www.ej-technologies.com/download/jprofiler/files下载linux平台最新版本JProfiler for Linux Setup Executable

  2. jprofiler_linux-x64_14_0_3.sh新增执行权限

    bash
    chmod +x jprofiler_linux-x64_14_0_3.sh
  3. 执行jprofiler安装程序,根据提示安装jprofiler

    bash
    sudo ./jprofiler_linux-x64_14_0_3.sh
  4. Show Applications面板搜索并打开jprofiler

jprofiler术语

Shallow SizeRetained Size

参考链接

Shallow Size是指实例自身占用的内存, 可以理解为保存该'数据结构'需要多少内存, 注意不包括它引用的其他实例。

Retained Size是指, 当实例A被回收时, 可以同时被回收的实例的Shallow Size之和

outgoing referencesincoming references

参考链接

outgoing references ,这个对象引用了哪些对象 incoming references ,哪些对象引用了这个对象