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"

多次尝试未果,偶然一次连接后成功安装。

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