http://maven.apache.org/download.cgi java
解壓爲C:\maven3github
在系統環境變量加入PATH後加入maven3的bin目錄C:\maven3\binapache
C:\Users\Administrator>mvn -version Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-25T03:49:05+08:00) Maven home: C:\maven3\bin\.. Java version: 1.8.0_161, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_161\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
2.下載hsdiswindows
https://download.csdn.net/download/y1250056491/10102978maven
複製文件windows下的HotSpot虛擬機JIT編譯代碼的反彙編插件,有32位和64位兩個版本,放在相似\jre1.8.0_141\bin\server和\jdk1.8.0_1414\jre\bin\server目錄下便可spa
或者.net
https://files.cnblogs.com/files/zengkefu/hsdis.rar插件
3.下載jitwatch3d
https://github.com/AdoptOpenJDK/jitwatch
下載解壓到c:\jitwatch
4.執行java程序
C:\java>java -server -XX:+UnlockDiagnosticVMOptions -XX:+TraceClassLoading -XX:+PrintAssembly -XX:+LogCompilation -XX:LogFile=java.log XX
5.起動jitwatch
C:\jitwatch>mvn clean compile exec:java