一、软件列表:
windows和linux的jprofiler的版本必须一致
1、jprofiler_linux_9_1_1.tar.gz
2、jprofiler_windows_x64 9_1_1  
3、本地安装tomcat7(windows)
4、linux安装tomcat7(linux)

二、操作步骤
1、将jprofiler_linux_9_1_1.tar.gz拷贝到linux /usr/local目录下,并使用tar命令解压
2、生成startup_jprofiler.sh文件(该文件最后会拷贝到linux的tomcat bin目录下,并执行脚本,才能监控tomcat)
 打开:Session-->Integration Wizards-->New Remote Integration
 
 
 
 
这里注意在linux手上开启端口8849
 
 这里需要定位到本机的tomcat bin目录下
 
 
 
3、拷贝startup_jprofiler.sh到linux的tomcat bin目录下
a) 脚本授权:chmod 777 startup_jprofiler.sh
b) 执行脚本:./startup_jprofiler.sh
执行脚本可能报错:Error occurred during initialization of VM
Could not find agent library /usr/local/bin/linux-x64/libjprofilerti.so in absolute path, with error: /usr/local/bin/linux-x64/libjprofilerti.so: cannot open shared object file: No such file or directory
原因:对应目录下找不到文件libjprofilerti.so
解决:
cd /usr/local/jprofiler9/bin/linux-x64
cp libjprofilerti.so /usr/local/bin/linux-x64/libjprofilerti.so
 c)  执行输出
 
windows下重新执行步骤1,最后选择立即执行即可
 

三、注意事项
1、执行脚本报错
执行脚本:./startup_jprofiler.sh
执行脚本可能报错:Error occurred during initialization of VM
Could not find agent library /usr/local/bin/linux-x64/libjprofilerti.so in absolute path, with error: /usr/local/bin/linux-x64/libjprofilerti.so: cannot open shared object file: No such file or directory
原因:对应目录下找不到文件libjprofilerti.so
解决:
cd /usr/local/jprofiler9/bin/linux-x64
cp libjprofilerti.so /usr/local/bin/linux-x64/libjprofilerti.so

2、jprofiler连接不上
原因:未开启默认端口
vim /etc/sysconfig/iptables
service iptables restart

四、参考资料

jprofiler_监控远程linux服务器的tomcat进程(实践)的更多相关文章

  1. jprofiler_监控远程linux服务器的JVM进程(实践)

    几天前写了一篇文章,jprofiler_监控远程linux服务器的tomcat进程(实践),介绍了使用jprofiler怎样监控远程linux的tomcat进程,这两天想了想,除了可以监控tomcat ...

  2. jprofiler_监控远程linux服务器的JVM进程(转 非常棒)

    几天前写了一篇文章,jprofiler_监控远程linux服务器的tomcat进程(实践),介绍了使用jprofiler怎样监控远程linux的tomcat进程,这两天想了想,除了可以监控tomcat ...

  3. Nagios的安装配置与应用之五监控远程Linux服务器

    本文出自 “曹坏水” 博客,请务必保留此出处http://cao2012.blog.51cto.com/366908/1132113 NRPE是Nagios的一个功能扩展,它可在远程Linux和UNI ...

  4. 搭建基于Nagios的监控系统——之监控远程Linux服务器

    上一篇介绍了如何安装Nagios Core,这一篇跟大家分享一下如何将一台远程的Linux服务器加入纳入监控范围. 第一部分:在远程Linux上安装Nagios Plugins和NRPE   第一步: ...

  5. Jvisualvm监控远程linux下Tomcat

    Jvisualvm监控远程linux下Tomcat 1.编辑tomcat/bin/catalina.sh 加入下面这段代码,中间无换行: CATALINA_OPTS="$CATALINA_O ...

  6. Nagios学习笔记四:基于NRPE监控远程Linux主机

    1.NRPE简介 Nagios监控远程主机的方法有多种,其方式包括SNMP.NRPE.SSH和NCSA等.这里介绍其通过NRPE监控远程Linux主机的方式. NRPE(Nagios Remote P ...

  7. windows和linux下关闭Tomcat进程

    windows和linux下解决Tomcat进程 windows下启动Tomcat报错,8080端口号被占用,报错信息如下 两种解决方法,一种是关闭了这个端口号,另外一种是修改Tomcat下的serv ...

  8. Sublime Text编辑远程Linux服务器上的文件

    sublime有个叫sftp的插件,可以通过它直接打开远程机器上的文件进行编辑,并在保存后直接同步到远程linux服务器上. 用Package Control安装插件 按下Ctrl+Shift+P调出 ...

  9. Linux服务器上Tomcat的Web工程部署

    Linux服务器上Tomcat的Web工程部署 部署Web应用到Tomcat服务器就是将开放好的JavaWeb应用打包成war包,然后发布到tomcat服务器的webapps目录下: 步骤1,先进入t ...

随机推荐

  1. Retrofit 入门学习

    Retrofit 入门学习官方RetrofitAPI 官方的一个例子 public interface GitHubService { @GET("users/{user}/repos&qu ...

  2. Maven基础配置—本地Maven配置

    1.下载客户端 通过http://maven.apache.org/download.cgi#下载Maven本地客户端. 我下载的是apache-maven-3.2.5-bin.zip,在D盘解压. ...

  3. expdp 报The value (30) of MAXTRANS parameter ignored错误的原因诊断

    在使用expdp导出一个表的数据时遇到了下面情况,也不见其提示报错信息,一下子就执行完了,也没有导出我需要的数据 [oracle@getlnx01 dump_dir]$ expdp system/xx ...

  4. ORA-02292: integrity constraint (xxxx) violated - child record found

    在更新表的主键字段或DELETE数据时,如果遇到ORA-02292: integrity constraint (xxxx) violated - child record found 这个是因为主外 ...

  5. JVM之方法区

     基本特性: 线程共享区域,存储被JVM加载的类信息.常量.静态变量.即时编译器编译的代码等 堆的逻辑部分,不限定方法去内的内存位置和编译代码的管理策略,不限定实现垃圾回收 容量可不定也可动态扩展,不 ...

  6. java实现文件变化监控

    一. spring配置文件:application.xml <?xml version="1.0" encoding="UTF-8"?> <b ...

  7. Linux 内核中的 Device Mapper 机制

    本文结合具体代码对 Linux 内核中的 device mapper 映射机制进行了介绍.Device mapper 是 Linux 2.6 内核中提供的一种从逻辑设备到物理设备的映射框架机制,在该机 ...

  8. Ubuntu安装Svn,提供http访问

    安装相关package sudo apt-get install subversion subversion-tools apache2 libapache2-svn apache2-utils 创建 ...

  9. Ubuntu Mysql 维护

    安装MySql sudo apt-get install mysql-server 进入Mysql Shell mysql -u root -p 查询数据库 SHOW DATABASES; 创建数据库 ...

  10. [转]教你一招 - 如何给nopcommerce增加一个类似admin的area

    本文转自:http://www.cnblogs.com/wucf2004/p/nopcommerce-area.html asp.net mvc里面的area是什么,点击这里查看 如果在nopcomm ...