xhprof檢視效能測試圖一直報錯:failed to execute cmd: " dot -Tpng"多種因素解決方案
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中關閉函式使用,人為修煉程式碼技術即可
相關推薦
xhprof檢視效能測試圖一直報錯:failed to execute cmd: " dot -Tpng"多種因素解決方案
xhprof檢視效能測試圖一直報錯:failed to execute cmd: ” dot -Tpng”多種因素解決方案 最近在新環境進行php程式碼效能測試,用了xhprof這個工具,搭建好以後,點選[View Full Callgraph]檢視效能分析圖
xhprof查看性能測試圖一直報錯:failed to execute cmd: " dot -Tpng"多種因素解決方案
not 方案 報錯 execute 下載 畫圖 graphviz png 性能測試 xhprof查看性能測試圖一直報錯:failed to execute cmd: ” dot -Tpng”多種因素解決方案最近在新環境進行php代碼性能測試,用了xh
【spring cloud】在spring cloud服務中,打包ms-core失敗,報錯Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:repackage (default
在spring cloud服務中,有一個ms-code專案,只為所有的微服務提供核心依賴和工具類,沒有業務意義,作為核心依賴使用。所以沒有main方法,沒有啟動類。 在spring cloud整體打包的過程中報錯: [INFO] --- maven-jar-plugin:3.0.2:jar (def
報錯 Failed to execute 'getContext' on 'HTMLCanvasElement': 1 argument required, but only 0 present.
在執行下面程式碼的時候報錯 var can = document.getElementById("can"); var ctx = can.getContext();
Eclipse及Eclipse為基礎的App報錯“Failed to create the Java Virtual Machine”的解決辦法
由於OracleJDK馬上就要收費了,公司要求更換OpenJDK,結果安裝後Eclipse及Eclipse為基礎的App啟動報錯:“Failed to create the Java Virtual Machine” 根據理解和經驗此文特地整理了有關修復方法。 方法一:找到eclpise路
SpringBoot+Druid報錯Failed to determine a suitable driver class的解決
問題描述 專案中使用了自定義的Spring Listener配置,從網路獲取配置KV,在SpringBoot啟動過程中載入,然後再載入Druid環境。程式啟動時-間歇性報錯(三次啟動可能有一次報錯,其他兩次可以正常啟動): ***************
maven package 打包報錯 Failed to execute goal
總結一下maven 打包,專案工程開發工具idea14,使用 JDK 1.8 版本1.打包前需要先將idea關掉,不然會導致mvn clean的時候,部分檔案刪除不掉,mvn package的時候,也會丟失檔案。2.mvn package打包報錯:[ERROR] Failed
啟動Myeclipse報錯“Failed to create the Java Virtual Machine”的解決辦法
我安裝的是Myeclipse 10.7.1。裝上好久沒用,今天啟動突然報錯:Failed to create the Java Virtual Machine。檢查Myeclipse安裝好使用時好的啊,近期也沒用,可能是近期升級了本地單獨安裝的jre版本導致的吧(Myecli
maven pom 報錯 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) on project xxxxx: Execution defa
Python:pyinstaller 打包執行報錯 failed to execute script ***
車禍現場 打包命令:(在Windows的CMD命令視窗輸入) pyinstaller -F -w C:\Users\JulianYang\Desktop\testJ\milestone\cam
新建專案報錯 Failed to execute aapt
很久沒做安卓開發了,以前開發安卓的使用大多用的是eclipse,覺得也挺方便的。不過既然谷歌推薦使用android studio,也有他的道理,於是就嘗試一下。沒想到,裝了android studio 後,新建專案,報錯 Error:FAILURE: Build faile
SpringBoot啟動報錯Failed to auto-configure a DataSource 的問題解決!
今天搭了個springboot的小demo,但是啟動的時候報了這個錯誤: scription: Failed to auto-configure a DataSource: 'spring.datasource.url' is not specified and no em
python locust介面效能測試HTTPS網站報錯:Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certi
問題描述: 測試HTTPS SSL 協議的網站介面,用Python Locust模組,不論POST還是GET都提示錯誤: SSLError Max retries exceeded with url: /action.php?m=upload (Caused by SSL
Docker中啟動mysql報錯: Failed to get D-Bus connection
-- oop 鏡像文件 com port oot roo 生成 systemctl docker版本:[root@localhost ~]# docker versionClient: Version: 1.10.3 API version: 1.2
最新cenos執行service httpd restart 報錯Failed to restart httpd.service: Unit not found.
service 通過 gpo spa word com 註意 命名 執行 原來是需要將Apache註冊到Linux服務裏面啊!註冊Apache到Linux服務在Linux下用源代碼方式編譯安裝完Apache後,啟動關閉Apache可以通過如下命令實現: /usr/loca
Chrome開發者模式報錯Failed to load resource問題分析
cache 隨著 httpwatch not 瀏覽器 resource console 代碼 gpo 在調試Web程序時,console.log輸出的調試信息會顯示在Chrome瀏覽器開發者模式中的Console中,但是會伴隨著一條報錯信息: Failed to loa
tomcat運行報錯Failed to start component [StandardEngine[Catalina].StandardHost[localhost].
popu 屬性 and get fmt pid nts 項目 post tomcat運行報錯Failed to start component [StandardEngine[Catalina].StandardHost[localhost].多半情況是找不到jar包
tomcat啟動的時候報錯Failed to start component
detail 一個 read art 啟動 ini sources etc executor 在idea中運行tomcat時,遇到異常,異常信息如下: 16-Jan-2018 16:33:37.325 信息 [localhost-startStop-1] org.apac
git報錯failed to push some refs to '[email protected]:Markprint/github.git'
需要 tar etc refs img nbsp alt 碼雲 style 這個不知名小錯誤用了我兩天的空余時間mmp 就是這裏報的錯 輸入 git push origin master -f 解釋為: 遠程分支上存在本地分支中不存
添加頭文件的報錯failed to emit precompiled header 的解決辦法
settings stack ons arch recursive log 頭文件 ear mpi 在buildsetting中的以下兩個路徑中添加對應的設置,重現編譯即可解決,stackoverflow地址:點擊 Solution:1 I added $(inherite