如何使用火焰图对Spark的executor的CPU使用率进行profile?具体步骤,如何操作?
需要对executor CPU进行profile,看调用栈,有没有函数性能瓶颈,想用火焰图。1. 登录executor所在NM节点;2. 通过ps -ef | grep appId/executor 结合 jps 找到相应executor进程,找到进程pid;3. 通过以下脚本,获取(定时抓取)供profile用的jstack和top等文件:#!/bin/bashif [ $# -eq 0 ]; then echo >&2 "Usage: jstackSeries
原创
2020-07-23 21:40:27 ·
873 阅读 ·
0 评论