xhprof查看性能测试图一直报错:failed to execute cmd: " dot -Tpng"多种因素解决方案
来源:互联网 发布:sql两表连接查询 编辑:程序博客网 时间:2024/06/05 13:22
xhprof查看性能测试图一直报错:failed to execute cmd: ” dot -Tpng”多种因素解决方案
最近在新环境进行php代码性能测试,用了xhprof这个工具,搭建好以后,点击[View Full Callgraph]查看性能分析图链接一直报错:failed to execute cmd: ” dot -Tpng”
原因一:未安装graphviz
- 如果看到 sh: dot: command not found ,说明服务器上没有安装画图软件graphviz
2.yum安装: yum install graphviz - 源码安装到这里下载
原因二:php.ini设置了禁用proc_open方法
- 如果安装好了graphviz,仍然出现”failed to execute cmd”,检查下服务器上的php.ini中disable_functions这项是不是限制了proc_open,因为在xhprof_lib/utils/callgraph_utils.php的xhprof_generate_image_by_dot中使用了proc_open函数,
2.设置“disable_functions = “ 即可,一般没有必要在php.ini中关闭函数使用,人为修炼代码技术即可
阅读全文
0 0
- xhprof查看性能测试图一直报错:failed to execute cmd: " dot -Tpng"多种因素解决方案
- 如何解决xhprof的报错failed to shell execute cmd=" "/usr/bin/dot" -Tpng" proc_open() has been ...
- Xhprof failed to execute cmd: " dot -Tpng". stderr: `sh: 1: dot: not found ' 解决办法
- UE报错:Uncaught TypeMismatchError: Failed to execute 'removeAttributeNode' on 'Element'解决方案
- 新建项目报错 Failed to execute aapt
- pyinstaller打包运行报错failed to execute script main
- maven项目启动报错:Failed to execute goal......
- maven因为测试类打包报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test
- Failed to execute /linuxrc. Attempting defaults... 解决方案
- XHProf 性能测试
- 新建项目报错,Failed to execute appt 错误,导致R文件报错的解决办法
- 报错:Conversion to Dalvik format failed: Unable to execute dex:
- 报错:Conversion to Dalvik format failed: Unable to execute dex:
- 报错:Conversion to Dalvik format failed: Unable to execute dex:
- 报错:Conversion to Dalvik format failed: Unable to execute dex:
- 报错:Conversion to Dalvik format failed: Unable to execute dex:
- eclipse android程序运行报错:Conversion to Dalvik format failed: Unable to execute dex:
- 报错:Conversion to Dalvik format failed: Unable to execute dex:
- Snakebar笔吐丝多个按钮点击事件
- 书写「简历」时,需要规避的错误
- sparkML-note-算法总结思维导图
- 【正一专栏】如果世界杯上没有了意大利
- 【第七届蓝桥杯】快速排序
- xhprof查看性能测试图一直报错:failed to execute cmd: " dot -Tpng"多种因素解决方案
- finally the popularity of Python is beyond Java
- 【第七届蓝桥杯】凑算式
- html盒子边框样式制作border-radius
- FloatActionButtonl右下角的小火箭
- OpenCV_操作像素
- TCP/IP,SOAP,UDP,SOCKET传输大量数据,思想
- 代码鲁棒性
- TabLayout标题和Fragment联动