Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
profiler start -e cpu;
profiler stop --format html --file /mnt/d/arthas/cpu.html;

下图展示了一次简单的单线程IoTDB写入任务执行过程中某一段时间的CPU抽样片段。下图展示了一次简单的客户端单线程写入,IoTDB运行过程中某一段时间的CPU抽样片段。


内存抽样

进行内存分析时,堆分析器需要HotSpot调试符号,Oracle JDK已经将它们嵌入到libjvm.so中,但是OpenJDK在构建时,被打包到了单独的包中。

...

Code Block
profiler start -e alloc;
profiler stop --format html --file /mnt/d/arthas/alloc.html;

下图展示了一次简单的单线程IoTDB写入任务执行过程中某一段时间的内存抽样片段。下图展示了一次简单的客户端单线程写入,IoTDB运行过程中某一段时间的内存抽样片段。

参考

Arthas 应用诊断利器 (aliyun.com)

...