Jprofiler Manual
Total Page:16
File Type:pdf, Size:1020Kb
JProfiler Manual © 2017 ej-technologies GmbH. All rights reserved. Index JProfiler help .......................................................................................................................................... 8 How to order ......................................................................................................................................... 9 A Help topics ........................................................................................................................................ 10 A.1 Profiling ...................................................................................................................................... 10 A.1.1 Profiling modes .................................................................................................................. 10 A.1.2 Remote profiling ................................................................................................................ 12 A.1.3 Behind the scenes ............................................................................................................. 16 A.2 Configuration ............................................................................................................................ 20 A.2.1 Session settings ................................................................................................................. 20 A.2.2 Method call recording ....................................................................................................... 23 A.2.3 Configuring filters .............................................................................................................. 25 A.2.4 Offline profiling and triggers ............................................................................................ 29 A.3 Memory profiling ...................................................................................................................... 31 A.3.1 Recording objects .............................................................................................................. 31 A.3.2 Using the difference columns .......................................................................................... 33 A.3.3 Finding a memory leak ...................................................................................................... 35 A.4 CPU profiling ............................................................................................................................. 40 A.4.1 Time measurements ......................................................................................................... 40 A.4.2 Hot spots and filters .......................................................................................................... 42 A.4.3 Request tracking ................................................................................................................ 44 A.4.4 Removing finalizers ........................................................................................................... 47 A.5 Probes ........................................................................................................................................ 49 A.5.1 Probes explained ............................................................................................................... 49 A.5.2 Custom probes ................................................................................................................... 54 B Reference ......................................................................................................................................... 59 B.1 Getting started .......................................................................................................................... 59 B.1.1 Quickstart dialog ................................................................................................................ 59 B.1.2 Running the demo sessions ............................................................................................. 59 B.1.3 Overview of features ......................................................................................................... 59 B.1.4 JProfiler's start center ........................................................................................................ 61 B.1.5 Application server integration .......................................................................................... 62 B.1.6 IDE integration ................................................................................................................... 62 B.1.7 JProfiler licensing ............................................................................................................... 62 B.2 IDE integrations ........................................................................................................................ 64 B.2.1 Overview ............................................................................................................................. 64 B.2.2 IntelliJ IDEA .......................................................................................................................... 64 B.2.3 Eclipse ................................................................................................................................. 70 B.2.4 JDeveloper .......................................................................................................................... 73 B.2.5 Netbeans ............................................................................................................................. 75 B.3 Managing sessions ................................................................................................................... 78 B.3.1 Overview ............................................................................................................................. 78 B.3.2 Application settings ........................................................................................................... 79 B.3.2.1 Overview ...................................................................................................................... 79 B.3.2.2 Attach to local JVM session ........................................................................................ 81 B.3.2.3 Attach to profiled JVM session ................................................................................... 81 B.3.2.4 Launched application session ................................................................................... 82 B.3.2.5 Launched applet session ........................................................................................... 83 B.3.2.6 Launched Java Web Start session ............................................................................. 84 B.3.2.7 Code editor settings ................................................................................................... 84 B.3.3 Filter settings ...................................................................................................................... 84 B.3.3.1 Overview ...................................................................................................................... 84 B.3.3.2 Define filters ................................................................................................................ 85 B.3.3.3 View filter tree ............................................................................................................. 86 B.3.3.4 Filter templates ........................................................................................................... 87 B.3.3.5 Exceptional methods .................................................................................................. 87 B.3.3.6 Ignored methods ........................................................................................................ 88 B.3.3.7 Split methods .............................................................................................................. 89 B.3.4 Profiling settings ................................................................................................................ 90 B.3.4.1 Overview ...................................................................................................................... 90 B.3.4.2 Method call recording ................................................................................................ 91 B.3.4.3 CPU profiling ................................................................................................................ 92 B.3.4.4 Probes & JEE ................................................................................................................ 93 B.3.4.5 Memory profiling ........................................................................................................ 94 B.3.4.6 Thread profiling ........................................................................................................... 95 B.3.4.7 Miscellaneous settings ............................................................................................... 95 B.3.4.8 Profiling settings templates ....................................................................................... 97 B.3.5 Trigger settings ................................................................................................................... 97 B.3.5.1 Overview ...................................................................................................................... 97 B.3.5.2 Trigger wizard .............................................................................................................