linux 安裝 Oracle Solaris Studio Performance Analyzer (性能分析器)

linux 安裝 Oracle Solaris Studio Performance Analyzer (Oracle Developer Studio)

下載地址:https://www.oracle.com/technetwork/cn/server-storage/developerstudio/downloads/index.html

 

安裝包名稱:OracleDeveloperStudio12.6-linux-x86-rpm.tar.bz2

將安裝包放到安裝目錄,例: /opt

1.解壓

進入安裝目錄

將tar.bz2包變爲tar 包:

    bunzip2  OracleDeveloperStudio12.6-linux-x86-rpm.tar.bz2

    如果沒有 bzip2 工具,需要先下載安裝,

        yum search bzip2  //查詢安裝包

        yum -y install bzip2.x86_64 

解壓tar文件

tar -xf  OracleDeveloperStudio12.6-linux-x86-rpm.tar

2.安裝  Oracle Solaris Studio Performance Analyzer 

(1)圖形安裝 (需要有圖形界面展示工具,如Xmanager)

安裝後可以使用圖形界面展示性能相關信息

執行命令:

/opt/OracleDeveloperStudio12.6-linux-x86-rpm/developerstudio.sh

正常安裝顯示:

Configuring the installer...
Searching for JVM on the system...
Extracting installation data (can take a while, please wait)...
Running the installer wizard...
 

安裝檢測:

使用命令 which cc  man codean 檢測

% which cc
/opt/developerstudio12.6/bin/cc
% man codean
Reformatting page. Please wait... done.

User Commands                                           codean(1)

NAME
     codean - Command Line Interface of Code Analyzer
...

如果沒有出現上述結果,需要在/etc/profile 中添加配置:

export  PATH=$PATH:/opt/oracle/developerstudio12.6/bin
export  MANPATH=/opt/oracle/developerstudio12.6/man
 

完成後刷新profile

使用命令: analyzer -V 結果:

analyzer: Studio 12.6 Performance Analyzer 12.6 Linux_x64 2017/05/24

 

啓動方式:

執行命令: analyzer

圖形界面就出現了。

(2)命令安裝,安裝後只能以命令形式查看性能信息

安裝命令:/opt/OracleDeveloperStudio12.6-linux-x86-rpm/developerstudio.sh  --non-interactive

使用方式:err_print  

 

=============================================================

圖形界面安裝時部分問題記錄

1顯示結果:

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread "main"

在/etc/profile 中添加配置 :

export   DISPLAY=localhost:11.0

2顯示結果:

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"

經過大量嘗試,安裝過的插件:

yum install libXrender-devel.x86_64

yum install libXtst-devel.x86_64

yum install libXi libXp libXtst

yum install xorg-x11-xauth xterm

依然沒有起作用,關閉當前連接,重新連接系統後,執行安裝命令,成功安裝了。

3顯示結果:(另一臺服務器)

Cannot show installer UI. Please use "ssh -X", xauth or "xhost + <hostname of the remote or local host>" to allow connections to the Xserver.
You can also use non-interactive installation mode by providing --non-interactive command-line option.

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"

多次嘗試未果,偶然一次連接後成功安裝。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章