오프라인 모드를 사용하여 응용 프로그램에 연결하고 방화벽 소프트웨어를 종료했습니다.JProfiler를 처음 연결하는 동안 "JProfiler GUI에서 연결 대기 중"정보를 건너 뛰는 방법
와 나는 같은 몇 가지 정보를 얻을 수 있습니다 :
Exception in thread "main" java.lang.NullPointerException
at com.jprofiler.core.comm.d.a.getThreadInfos(ejt:229)
at TestProfiler.dumpProfilingData(TestProfiler.java:59)
at TestProfiler.main(TestProfiler.java:46)
을하지만 JProfiler와 GUI 사용하는 경우 내가 먼저 연결합니다
C:\workspace\newperflog\TestThread\bin>java "-agentpath:C:\Program Files\jprofil
er7\bin\windows-x64\jprofilerti.dll=port=8849" ProfilerTest
JProfiler> Protocol version 37
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 64-bit library
JProfiler> Listening on port: 8849.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...
내가 메시지와 함께 응용 프로그램을 연결할 수 없습니다 내 오프라인 명령과 연결할 수 있습니다.
JProfiler GUI를 호출 할 때 누락 된 인수가 있습니까?
난 후 다음과 같은 JProfiler와 GUI로 연결 자바 오프라인 응용 프로그램을 통해 정보를 얻을 수 :
JProfiler> Protocol version 37
JProfiler> Using JVMTI
JProfiler> JVMTI version 1.1 detected.
JProfiler> 64-bit library
JProfiler> Listening on port: 8849.
JProfiler> Instrumenting native methods.
JProfiler> Can retransform classes.
JProfiler> Can retransform any class.
JProfiler> Native library initialized
JProfiler> VM initialized
JProfiler> Waiting for a connection from the JProfiler GUI ...
JProfiler> Hotspot compiler enabled
JProfiler> Using sampling (5 ms)
JProfiler> Time measurement: elapsed time
JProfiler> CPU profiling enabled
JProfiler> Disconnected. Waiting for reconnection.
JProfiler> Listening on port: 8849.
JProfiler> Reconnection.
JProfiler> Disconnected. Waiting for reconnection.
JProfiler> Listening on port: 8849.
JProfiler> Reconnection.
JProfiler> Disconnected. Waiting for reconnection.
JProfiler> Listening on port: 8849.
Before Connected
Connected
Profiling data :
Hot spots:
Top 5 hot spots:
Hot spot 1: ProfilerTest.main(java.lang.String[ ]): 50 ms (100 %)
Backtraces:
ProfilerTest.main(java.lang.String[ ]): 50045 (0)
***: 50045 (0)
Cpu tree:
***: 50045 (0)
ProfilerTest.main(java.lang.String[ ]): 50045 (0)
java.util.Scanner.next(): 50045 (0)
Custom payload hot spots:
Tested load factors: