1. 程式人生 > >Jprofiler 5.1.2 配置

Jprofiler 5.1.2 配置

2.安裝,
執行jprofiler_windows_5_1_2.exe,安裝到d:/Program Files/jprofiler5
安裝的過程中可以選擇與IDE整合,也可以在安裝完成後,執行Jprofiler的時候再整合。

3.整合到Eclipse,
先啟動 JProfiler :
開始選單–>所有程式–>JProfiler 5 –>JProfiler,輸入註冊碼。
算號器下載
Name: any
Company: any
License Key:
[email protected]#16320-dvzxpt17ogmau#013
[email protected]#83851-1vyctfjv8d6ua#255

[email protected]#83192-56yozpwn6v3n#174

(執行整合前,先關閉Eclipse)
主選單–> Session –>IDE Intergrations –>選擇Eclipse 3.3,,點“Integrate” ,選擇Eclipse所在的資料夾。D:/Java/eclipse.
整合成功。
4.在Eclipse裡配置JProfiler.

主選單–>Window–>Customize Perspective –>Commands –>找到Profile ,選中它,再點OK即可。

5.填寫註冊碼的時候,第一位必須是大寫字母,第二位必須連線號,
第一個井號前的內容如果填錯,Jprofiler不會提示出錯。

而在啟動Session的時候,而Jprofiler彈出的對話方塊內容為:
The JVM has Terminated unexpectedly.
Please try the following strategies:
*reduce the -Xmx value of the profiled application
*profile in interpreted mode
*change your profiling settings(e.g. from dynamic instrumentation sampling)
害得我試了半天都不行,

後來仔細看Terminal才發現是提示” Invalid license key”.

JProfiler> Protocol version 25
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 32-bit library
JProfiler> Listening on port: 31757.
JProfiler> Instrumenting native methods.
JProfiler> Native library initialized
JProfiler> Waiting for a connection from the JProfiler GUI …
JProfiler> Using sampling (5 ms)
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> ERROR: Invalid license key. Aborting.

JProfiler> Disconnected.

修改註冊碼之後,終於正常啟動了。

正常啟動的Terminal顯示內容:

JProfiler> Protocol version 25
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 32-bit library
JProfiler> Listening on port: 31759.
JProfiler> Instrumenting native methods.
JProfiler> Native library initialized
JProfiler> Waiting for a connection from the JProfiler GUI …
JProfiler> Using sampling (5 ms)
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Hotspot compiler enabled
JProfiler> Starting com/lizongbo/smpp/server/Main …

Listening on port a 5435