一、安装部分

安装包:

1、jprofiler_linux_9_1_1.rpm

2、jprofiler_windows-x64_9_1_1.exe

  • 需要注意的是,Linux 和 Windows 安装的版本号必须一致

在 Linux 安装 jprofiler9 完成;在 Windows 安装 jprofiler9 完成;--安装非常容易,在网上搜索一堆

二、配置部分

1、在 Win 中打开JP

1、Follow me:

以下都是简单对照选择,看到什么像就选择:

3、Application Server:

查看系统、应用等所需要的相关信息可参考 -- http://www.cnblogs.com/snooper/p/8497170.html

4、Linux X86/AMD64

5、JVM vendor

6、一会再连接

7、填写所需要监控的 Linux 服务器 IP地址(这里不需要填写端口)

8、 找到 JP 在 Linux 中的安装路径

 [root@test1 bin]# whereis jprofiler
jprofiler: /usr/local/bin/jprofiler /usr/local/jprofiler9.1 /opt/jprofiler9/bin/jprofiler.vmoptions /opt/jprofiler9/bin/jprofiler /opt/jprofiler9/bin/jprofiler.jar

填写  JP 在 Linux 中 正确的安装路径

9、这里填写的是项目的启动脚本地址,也就是说,这得先将 Linux 服务器上的项目启动脚本下载到 Windows ,然后再指定:

记下这个路径,后面还会用到;

如下:/usr/local/tomcat/tomcat_jdt/bin/startup.sh 就是所需要的脚本文件,将其下载到 Windows ;

 [root@test1 ~]# cd /usr/local/tomcat/tomcat_jdt/bin/
[root@test1 bin]# ll
total 1952
-rw-r--r--. 1 root root 26826 Jan 18 2017 bootstrap.jar
-rw-r--r--. 1 root root 13007 Jan 18 2017 catalina.bat
-rwxr-xr-x 1 root root 20963 Jul 6 2017 catalina.sh
-rwxr-xr-x. 1 root root 20837 Jan 18 2017 catalina.sh.bak
-rw-r--r--. 1 root root 1647 Jan 18 2017 catalina-tasks.xml
-rw-r--r--. 1 root root 24283 Jan 18 2017 commons-daemon.jar
-rw-r--r--. 1 root root 204944 Jan 18 2017 commons-daemon-native.tar.gz
-rw-r--r--. 1 root root 2040 Jan 18 2017 configtest.bat
-rwxr-xr-x. 1 root root 1922 Jan 18 2017 configtest.sh
-rwxr-xr-x. 1 root root 7888 Jan 18 2017 daemon.sh
-rw-r--r--. 1 root root 2091 Jan 18 2017 digest.bat
-rwxr-xr-x. 1 root root 1965 Jan 18 2017 digest.sh
-rw-r--r--. 1 root root 1159554 Jan 18 2017 EZHTTP.zip
-rw-r--r--. 1 root root 3430 Jan 18 2017 setclasspath.bat
-rwxr-xr-x. 1 root root 3547 Jan 18 2017 setclasspath.sh
-rw-r--r--. 1 root root 2020 Jan 18 2017 shutdown.bat
-rwxr-xr-x. 1 root root 1902 Jan 18 2017 shutdown.sh
-rw-r--r--. 1 root root 2022 Jan 18 2017 startup.bat
-rwxr-xr-x 1 root root 2159 Mar 10 17:47 startup_jprofiler.sh
-rwxr-xr-x. 1 root root 1904 Jan 18 2017 startup.sh
-rw-r--r--. 1 root root 38197 Jan 18 2017 tomcat-juli.jar
-rw-r--r--. 1 root root 388787 Jan 18 2017 tomcat-native.tar.gz
-rw-r--r--. 1 root root 4021 Jan 18 2017 tool-wrapper.bat
-rwxr-xr-x. 1 root root 5024 Jan 18 2017 tool-wrapper.sh
-rw-r--r--. 1 root root 2026 Jan 18 2017 version.bat
-rwxr-xr-x. 1 root root 1908 Jan 18 2017 version.sh

10、默认

11、一会再启动

12、完成后,就会加出一项了

13、到此,配置完成;但尚未可以启动,还得继续:

14、打开本机 D:\jp 会看到生成了一个新的文件 startup_jprofiler.sh

15、将 startup_jprofiler.sh 上传到 Linux 服务器的项目应用的 /usr/local/tomcat/tomcat_jdt/bin 下,并授予可执行的权限

 [root@test1 bin]# cd /usr/local/tomcat/tomcat_jdt/bin
[root@test1 bin]# chmod +x startup_jprofiler.sh

16、终极配置到此完成!

17、先关闭当前项目的 Tomcat ,然后 通过上传的脚本文件 startup_jprofiler.sh 来启动项目

  [root@test1 bin]# cd /usr/local/tomcat/tomcat_jdt/bin
[root@test1 bin]# ./shutdown.sh
[root@test1 bin]# ./startup_jprofiler.sh

18、在 jprofiler 点击 Start 启动吧

连接成功示例图

  • 遇到的问题:

最容易遇到的问题是点击 Start 启动时,报错:

Could not find agent library /opt/jprofiler9/bin/linux-x86/libjprofilerti.so

解决方法:

cd /usr/local/tomcat/tomcat_jdt/bin/startup_jprofiler.sh

找到

 ...
# The following lines have been added by the
# application server integration wizard of JProfiler CATALINA_OPTS="-agentpath:/opt/jprofiler9/bin/linux-x86/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS"
export CATALINA_OPTS # end of modifications
...

将 linux-x86 修改为 linux-x64 ,修改完成后,应为:

 ...
# The following lines have been added by the
# application server integration wizard of JProfiler CATALINA_OPTS="-agentpath:/opt/jprofiler9/bin/linux-x86/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS"
export CATALINA_OPTS # end of modifications
...

再次连接,OK,成功。

jprofiler9.1.1 安装与配置的更多相关文章

  1. JDK安装与配置

    JDK安装与配置 一.下载 JDK是ORACLE提供免费下载使用的,官网地址:https://www.oracle.com/index.html 一般选择Java SE版本即可,企业版的选择Java ...

  2. Node.js 教程 01 - 简介、安装及配置

    系列目录: Node.js 教程 01 - 简介.安装及配置 Node.js 教程 02 - 经典的Hello World Node.js 教程 03 - 创建HTTP服务器 Node.js 教程 0 ...

  3. 烂泥:redis3.2.3安装与配置

    本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我的微信ilanniweb 前一段时间写过一篇codis集群的文章,写那篇文章主要是因为当时的项目不支持redis自 ...

  4. mysql源码包手动安装、配置以及测试(亲测可行)

    笔记编者:小波/qq463431476博客首页:http://www.cnblogs.com/xiaobo-Linux/ 记下这篇mysql笔记,望日后有用! redhat6采用centos yum源 ...

  5. 环境搭建系列-系统安装之centos 6.5安装与配置

    按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...

  6. ZooKeeper安装与配置

    一. 单机安装.配置: 1. 下载zookeeper二进制安装包下载地址:http://apache.dataguru.cn/zookeeper/zookeeper-3.4.3/zookeeper-3 ...

  7. mac 下JDK 与 tomcat 的安装与配置

    一.Mac下JDK的安装 1.先检测Mac是否已经安装过JDK,在终端中输入java 或者 javac 显示说明,表明已经安装过JDK,JDK版本查询终端键入java -version,终端会返回JD ...

  8. 烂泥:zabbix3.0安装与配置

    本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我的微信ilanniweb 这个月又快过完了,最近也比较忙,没时间写文章,今天挤点时间把zabbix3.0安装与配置 ...

  9. Jenkins入门系列之——02第二章 Jenkins安装与配置

    2014-12-08:已不再担任SCM和CI的职位,Jenkins的文章如无必要不会再维护. 写的我想吐血,累死了. 网页看着不爽的,自己去下载PDF.有问题请留言! Jenkins入门系列之——03 ...

随机推荐

  1. (转载)《C#高级编程》读书笔记

    C#类型的取值范围 名称 CTS类型 说明 范围 sbyte System.SByte 8位有符号的整数 -128~127(−27−27~27−127−1) short System.Int16 16 ...

  2. CodeForces - 580C Kefa and Park 【BFS】

    题目链接 http://codeforces.com/problemset/problem/580/C 题意 根节点是 1 然后所有的叶子结点都是饭店 从根节点到叶子结点的路径上 如果存在 大于m 个 ...

  3. Python3 logging 模块

    Python3 logging模块 日志模块: 用于便捷记录日志且线程安全的模块 CRITICAL = 50 FATAL = CRITICAL ERROR = 40 WARNING = 30 WARN ...

  4. php使用mysql数据库时中文不显示或显示异常解决方法

    如果出现标题所述问题,需从四个层面解决问题 1 项目文件是否为utf8编码 右键项目文件->properties->Resource->Text file encoding-> ...

  5. curl 监控web

    [root@rhel6 ~]# curl -I -s -w "%{http_code}\n" -o /dev/null http://127.0.0.1 [root@rhel6 ~ ...

  6. 操作系统原理2——OS结构

    操作系统原理2——OS结构   计算机系统是由硬件系统和软件系统两部分组成, 操作系统是软件系统的一个组成部分,它是直接在硬件系统的基础上工作的,所以在研究操作系统之前,先必须对计算机系统的结构有一个 ...

  7. 自底向上归并排序(Merge Sort)

    一.思路 另一种实现归并排序的方法是,先归并微型数组,再成对归并得到的子数组,直到将整个数组归并在一起. 我们先进行1-by-1归并,然后2-by-2归并,4-by-4归并,如此下去. 在最后一次归并 ...

  8. MapReduce修改输出的文件名

    MapReduce默认输出的文件名称格式如下:part-r-00000 自定义名称,比如editName,则输出的文件名称为:editName-r-0000,此方法没有彻底修改整个文件名,只修改了一部 ...

  9. fffmpeg 提取pcm

    ffmpeg -i input.aac -codec:a pcm_f32le -ar 48000 -ac 2 -f f32le output.pcm

  10. centos5.5源更新方法(网易163源 很快的源)

    http://blog.chinaunix.net/uid-24993824-id-189965.html 1.首先,打开终端,获取root权限 2.关闭fastestmirror插件         ...