Linux服务器端:
1、下载安装Linux版,这里安装的是RPM格式
wget http://download-aws.ej-technologies.com/jprofiler/jprofiler_linux_9_0_2.rpm
rpm -ivh jprofiler_linux_9_0_2.rpm
2、安装成功后,进到jprofiler的目录/opt/jprofiler9/bin,运行jpenable
[root@123 bin]# jpenable
Connecting to xxxxx.jar [26041] ...
Please select the profiling mode:
GUI mode (attach with JProfiler GUI) [1, Enter]
Offline mode (use config file to set profiling settings) [2]
会提示已经连接到要检测的xxxxx.jar,要求选择运行模式,这里输入1
1
Please enter a profiling port
[31757]
8885
You can now use the JProfiler GUI to connect on port 8885
[root@123 bin]#
然后会让输入监测通讯用的端口,这里输入8885,这时候服务器端就可以了。
Windows端:
1、先去官网下载windows版安装文件
2、安装好后,选择Session->Quick Attach,输入服务器IP和8885端口,连接即可。