Windows客戶端的JProfiler遠端監控Linux上的Tomcat伺服器
1.測試環境
伺服器:Redhat Enterprise Linux(核心版本 2.6.32-71.el6.i686 ),Tomcat6.0.16,Sun JDK 1.6,JProfiler 5.2.4 for linux(安裝包:jprofiler_linux_5_2_4.sh)
客戶端:Windows XP,JProfiler5.2.4 for windows(安裝包:jprofiler_windows_5_2_4.exe)
2.JProfiler軟體下載地址 http://www.ej-technologies.com/
3.客戶端 JProfiler 安裝(lincense key在附件中可以看到)
4.伺服器端 JProfiler 安裝:
把 jprofiler_linux_5_2_4.sh 上傳到到伺服器,假設路徑為 /usr/file/jprofiler_linux_5_2_4.sh
# cd /usr/file
# chmod 777 *.sh
# ./jprofiler_linux_5.1.2.sh -c
按照提示來安裝,提示都很簡單,不在多說。安裝路徑選擇 /opt/jprofiler5
注意,這裡的 -c 意思是用字元方式來安裝,如果機器上沒有 X 則加上該引數.
5.客戶端連線配置
1). 執行 JProfiler 。第一次開啟會有嚮導,忽略它。
2). 選擇 Session->Integration Wizard->New Remote Integratation
3). 選擇 On a remote computer;Platform of remote computer 選擇 Linux x86/AMD 64;Next
4). 輸入伺服器 IP ;Next
5). 輸入伺服器上的 jprofiler 的安裝路徑,如 /opt/jprofiler5 ;next
6). 選擇伺服器的 JDK 環境,這裡是:Sun,1.6.0,hotspot;next
7). 輸入埠:這裡是預設值 8849;next
8). 選擇啟動模式:這裡選第一種 wait for a connection from the jprofiler GUI;next
9). 這裡會列出需要在伺服器端做的配置:
Integration type: [Generic application]
Selected JVM: Sun 1.6.0 (hotspot)
Startup mode: Wait for JProfiler GUI
(1) Please insert
-agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler5/bin/agent.jar
into the start command of your remote application right after the java command.
(2) Please add
/opt/jprofiler5/bin/linux-x86
to the environment variable LD_LIBRARY_PATH.
A remote session named Remote application on 192.168.1.105 will be created that connects to a running instance of the remote application that is started with the modified start command.
6.伺服器端的配置
(1)修改系統環境配置檔案 /etc/profile ,增加
JPROFILER_HOME=/opt/jprofiler5/bin/linux-x86
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JPROFILER_HOME
(2)修改TOMCAT啟動檔案catalina.sh,新增-agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler5/bin/agent.jar 內容到CATALINA_OPTS中;
“-agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar ” 此內容由客戶端軟體生成
CATALINA_OPTS="$CATALINA_OPTS -agentlib:jprofilerti=port=8849 -Xbootclasspath/a:/opt/jprofiler4/bin/agent.jar"
7.Reboot Linux and startup Tomcat using startup.sh;
The log of tomcat which is $CATALINA_HOME/logs/catalina.out will show:
JProfiler> Protocol version 23
JProfiler> Using JVMTI
JProfiler> 32-bit library
JProfiler> Listening on port: 8849.
JProfiler> Native library initialized
JProfiler> Waiting for a connection from the JProfiler GUI
8.啟動客戶端軟體
點選jprofiler選單 session>start center>Open Session
Available session configurations中列出了剛才配置的連線,選中使用就OK了!!
9.The log of tomcat which is $CATALINA_HOME/logs/catalina.out will show:
JProfiler> Using dynamic instrumentation
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Hotspot compiler enabled
JProfiler> Starting org/apache/catalina/startup/Bootstrap
10.當中斷JProfiler連線時
The log of tomcat which is $CATALINA_HOME/logs/catalina.out will show:
JProfiler> Disconnected. Waiting for reconnection.
JProfiler> Listening on port: 8849.
相關文章
- jProfiler遠端連線Linux監控jvm、tomcat執行狀態LinuxJVMTomcat
- 監控database上的客戶端ip地址Database客戶端
- jvisualvm遠端監控Linux下的tomcatLVMLinuxTomcat
- Splunk新增LINUX客戶端新增監控Linux客戶端
- Nagios 監控windows客戶端安裝教程iOSWindows客戶端
- 在linux上使用VNC遠端監控LinuxVNC
- java-jvisualvm遠端監控阿里雲伺服器上的TomcatJavaLVM阿里伺服器Tomcat
- zabbix監控客戶端安裝客戶端
- Nagios for Aix監控客戶端iOSAI客戶端
- linux遠端監控軟體nomachine的使用LinuxMac
- windows 上rsync客戶端使用方法Windows客戶端
- 【windows socket+TCP伺服器客戶端】WindowsTCP伺服器客戶端
- 【windows socket+UDP伺服器客戶端】WindowsUDP伺服器客戶端
- 【windows socket+HTTP伺服器客戶端】WindowsHTTP伺服器客戶端
- 《samba搭建win客戶端和linux客戶端的區別》Samba客戶端Linux
- Linux下簡單的ACE socket客戶端和伺服器端Linux客戶端伺服器
- VNC客戶端是Windows,VNC客戶端是Windows如何進行操作VNC客戶端Windows
- oracle 客戶端與伺服器端的關係Oracle客戶端伺服器
- js 客戶端與伺服器端的通訊JS客戶端伺服器
- 遠端客戶端 訪問 ASM 例項客戶端ASM
- junkman 遠端堆疊監控
- 遠端影片監控實現的條件
- 在客戶端儲存對EJB的遠端呼叫是否可行?客戶端
- 客戶端到伺服器端的通訊過程客戶端伺服器
- [rsync+inotify]——監控客戶端檔案變化,rsync同步到伺服器客戶端伺服器
- 如果呼叫遠端遠端url介面為https,且存在客戶端證書驗證,如何在客戶端處理HTTP客戶端
- ORACLE:使用tcpdump 監控客戶端發過來的所有SQL語句OracleTCP客戶端SQL
- iscsi linux客戶端Linux客戶端
- linux遠端客戶端putty,xshell搭建注意事項——《視訊》Linux客戶端
- nagios的配置(監控端和被監控端)iOS
- 利用nagios監控本地伺服器和遠端伺服器iOS伺服器
- VNC客戶端推薦,Windows系統下VNC客戶端推薦VNC客戶端Windows
- 遠端管理Windows伺服器上的IIS服務的方法教程Windows伺服器
- 一個端到端的基於 form 表單的檔案上傳程式,包含客戶端和伺服器端ORM客戶端伺服器
- 影片監控遠端傳輸方案
- 遠端監控Springboot JVMSpring BootJVM
- 如何在 Linux 上安裝、配置 NTP 伺服器和客戶端?Linux伺服器客戶端
- tomcat8.5服務開啟zabbix遠端監控配置修改Tomcat