jprofiler9.1.1 安装与配置
一、安装部分
安装包:
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 安装与配置的更多相关文章
- JDK安装与配置
JDK安装与配置 一.下载 JDK是ORACLE提供免费下载使用的,官网地址:https://www.oracle.com/index.html 一般选择Java SE版本即可,企业版的选择Java ...
- Node.js 教程 01 - 简介、安装及配置
系列目录: Node.js 教程 01 - 简介.安装及配置 Node.js 教程 02 - 经典的Hello World Node.js 教程 03 - 创建HTTP服务器 Node.js 教程 0 ...
- 烂泥:redis3.2.3安装与配置
本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我的微信ilanniweb 前一段时间写过一篇codis集群的文章,写那篇文章主要是因为当时的项目不支持redis自 ...
- mysql源码包手动安装、配置以及测试(亲测可行)
笔记编者:小波/qq463431476博客首页:http://www.cnblogs.com/xiaobo-Linux/ 记下这篇mysql笔记,望日后有用! redhat6采用centos yum源 ...
- 环境搭建系列-系统安装之centos 6.5安装与配置
按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...
- ZooKeeper安装与配置
一. 单机安装.配置: 1. 下载zookeeper二进制安装包下载地址:http://apache.dataguru.cn/zookeeper/zookeeper-3.4.3/zookeeper-3 ...
- mac 下JDK 与 tomcat 的安装与配置
一.Mac下JDK的安装 1.先检测Mac是否已经安装过JDK,在终端中输入java 或者 javac 显示说明,表明已经安装过JDK,JDK版本查询终端键入java -version,终端会返回JD ...
- 烂泥:zabbix3.0安装与配置
本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我的微信ilanniweb 这个月又快过完了,最近也比较忙,没时间写文章,今天挤点时间把zabbix3.0安装与配置 ...
- Jenkins入门系列之——02第二章 Jenkins安装与配置
2014-12-08:已不再担任SCM和CI的职位,Jenkins的文章如无必要不会再维护. 写的我想吐血,累死了. 网页看着不爽的,自己去下载PDF.有问题请留言! Jenkins入门系列之——03 ...
随机推荐
- 牛客小白月赛1 G あなたの蛙は旅⽴っています【DP】
题目链接 https://www.nowcoder.com/acm/contest/85/G 思路 按照题解上的方式 存取数据 然后DP一下 就可以了 AC代码 #include <cstdio ...
- Hadoop1.x Shell命令
refer to http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html FS Shell 调用文件系统(FS)Shell命令应使用 bin/h ...
- web框架详解之tornado 三 url和分页
一.代码目录构建 controllers :处理业务逻辑的 account:处理账户相关的 上面目录作用和内容 controllers 包 :处理业务逻辑的 account:处理账户相关的 home ...
- nginx rewrite标签配置以及用户认证配置
一.nginx rewrite标签 rewrite 实现URL的改写主要是实现伪静态 1. rewrite指令语法 指令语法:rewrite regex replacement[flag] 默认值 ...
- java深入探究05
通讯录小程序 需求说明: 功能: 添加联系人 修改联系人 删除联系人 查询所有联系人 要求: console控制 数据保存在xml 1.创建联系人类 /** * 联系人实体对象 * @author A ...
- Python基础-修改excel中内容
from xlutils.copy import copy import xlrd import os #1.打一要修改的excel #2.再打开另一个excel #3.把第一个excel里面修改东西 ...
- BEC listen and translation exercise 38
很高兴看到有这么多人想了解我们的体育设施.It's good to see that there are so many people wanting to find out about our sp ...
- leetcode 6 ZigZag Conversion(水题)
就是简单的模拟一下就可以了.但是我一开始是用一个二维char数组来存的,这样在最终扫全体时会扫很多空的位置,浪费了很多时间,所以就time limit error了. 所以改进一下就用string数组 ...
- Nhibernate 三种配置方式
1 App.config 的配置: <?xml version="1.0" encoding="utf-8" ?><configuration ...
- POJ1041 John's trip
John's trip Language:Default John's trip Time Limit: 1000MS Memory Limit: 65536K Total Submissions: ...