Windows客户端的JProfiler远程监控Linux上的Glassfish ( by quqi99)
2010-01-21 18:40
477 查看
Windows客户端的JProfiler远程监控Linux上的Glassfish ( by quqi99)
作者:张华 发表于:2010-01-21
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明
1) windows与linux上都要安装jprofile,且版本一致。
chmod 777 jprofiler.sh
./jprofiler -c 字符界面安装
2)linux端配置
在glassfish的asadmin启动脚本中添加:
JPROFILER_HOME
=/
opt
/
jprofiler4
/
bin
/
linux
-
x86
export LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH:$JPROFILER_HOME
在domain.xml中添加:
<java-config
<profiler enabled="true" name="JProfiler">
<jvm-options>-agentlib:jprofilerti=port=8849</jvm-options>
<jvm-options>-Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar</jvm-options>
</profiler>
也就是加一个JVM选项,如果是TOMCAT你可以这样:
CATALINA_OPTS
=
"
$CATALINA_OPTS -Xms128m -Xmx128m $JPDA_OPTS -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar
"
3) windows端配置:
运行 JProfiler 。第一次打开会有向导,忽略它。
选择 Session->Integration Wizard->New Remote Integratation
选择 On a remote computer;Platform of remote computer 选择 Linux x86/AMD 64;Next
4) 启动时
在windows上运行 asadmin命令之后,然后再windows上启动客户端连接:
点击jprofiler菜单 session>start center>Open Session
Available session configurations中列出了刚才配置的连接,选中使用就OK了!!
作者:张华 发表于:2010-01-21
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明
1) windows与linux上都要安装jprofile,且版本一致。
chmod 777 jprofiler.sh
./jprofiler -c 字符界面安装
2)linux端配置
在glassfish的asadmin启动脚本中添加:
JPROFILER_HOME
=/
opt
/
jprofiler4
/
bin
/
linux
-
x86
export LD_LIBRARY_PATH
=
$LD_LIBRARY_PATH:$JPROFILER_HOME
在domain.xml中添加:
<java-config
<profiler enabled="true" name="JProfiler">
<jvm-options>-agentlib:jprofilerti=port=8849</jvm-options>
<jvm-options>-Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar</jvm-options>
</profiler>
也就是加一个JVM选项,如果是TOMCAT你可以这样:
CATALINA_OPTS
=
"
$CATALINA_OPTS -Xms128m -Xmx128m $JPDA_OPTS -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar
"
3) windows端配置:
运行 JProfiler 。第一次打开会有向导,忽略它。
选择 Session->Integration Wizard->New Remote Integratation
选择 On a remote computer;Platform of remote computer 选择 Linux x86/AMD 64;Next
4) 启动时
在windows上运行 asadmin命令之后,然后再windows上启动客户端连接:
点击jprofiler菜单 session>start center>Open Session
Available session configurations中列出了刚才配置的连接,选中使用就OK了!!
相关文章推荐
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Windows客户端的JProfiler远程监控Linux上的Tomcat
- Jprofiler在linux上的安装和配置,以及如何通过windows客户端监控JAVA应用程序
- JProfiler7 Windows客户端监控Linux-适用于Tomcat监控
- windows客户端jprofiler连接远程Linux Tomcat出现的破解身份验证问题
- [招聘] 中文的LinkedIn项目招聘服务器端Linux开发和Windows客户端开发
- 《配置Naigos nrpe的客户端(LINUX、Windows)》
- puppet+svn管理windows和linux客户端
- Windows的VNC客户端连接Linux无法复制粘贴
- Linux网络编程(四)——多线程实现简单的聊天(linux 服务器端 windows客户端)
- 全网最详细的Git学习系列之介绍各个Git图形客户端(Windows、Linux、Mac系统皆适用ing)(图文详解)
- 利用cwRsync客户端将Windows下文件同步到Linux
- Windows/Linux下安装python的mysql客户端接口
- svn服务器架设在linux系统上,svn客户端在windows上,在update的时候可能会出现“Can't open file. XXXX/tmp/text-base/XX.svn-base 系统