java-jprofiler-monitoring Performance "five"

Source: Internet
Author: User
Tags stack trace jprofiler

Original address: http://blog.csdn.net/chendc201/article/details/22897999

First, the basic understanding

1. In the live memory view, right click on the relevant class, check mark current values can mark the present value, easy to follow the comparison, pay attention to the green and red points;

  

After the mark is finished, it is convenient to see the change of the value through GUI interface.

  

2. Press F4 or click the green icon on the form run GC to notify the JVM of garbage collection actions (just notifications, not forced reclamation);

  

3. In the live memory view, right-click on the related class, click Show Selection in Heap Walker can do heap memory tracking;

  

4. Right-click the related class in the Heap Walker view and click Used Selected instances→allocation tree to see the details of the call and memory usage of the class.

  

Allocation tree looks at call trees, and you can choose other options as needed.

  

Second, the module introduction

The introduction of the module is mainly to jprofiler the specific functions of the introduction, part of the content referenced from the blog: Jprofiler to solve the performance of Java server tracking, if the reader's English reading ability than strong can also click on the toolbar help, directly read English, The following sections are also referenced from the English API.

  

3.2.1 Memory views"now renamed Live Memory"

The memory view portion of Jprofiler can provide a dynamic memory usage update view and a view that displays information about memory allocation status. All views have several aggregation layers and are able to display existing objects and objects that are garbage collected.

  

    • All objects All Objects
      Displays a package of classes or all objects on the status statistics and sizing information heap. You can mark the current value and display the difference value.
    • Recording Object Record Objects
      Displays the package for the class or all logged objects. You can mark the current value and display the difference value.
    • Assigning access trees Allocation Call Tree
      A Java EE component that displays a request tree or method, class, package, or annotated allocation information for a selected class.
    • Distribution hotspot Allocation Hot spots
      Displays a list of methods, classes, packages, or EE components that are assigned the selected class. You can label the current value and display the difference value. For each hotspot, it can be displayed in the trace log tree.
    • Category Tracker Class Tracker
      The class tracking view can contain any number of charts that show the instance and time of the selected class and package.
3.2.2 Heap Traversal Heap Walker

In Jprofiler's heap Walker, you can take a snapshot of the state of the heap and find objects of interest by selecting the steps. There are five views of the heap walker:

  

    • Class Classes
      To display all classes and their instances, you can right-click the concrete class "used Selected Instance" for further tracking.
    • Assigning allocations
      Displays the allocation tree and the distribution hotspot for all record objects.
    • Index References
      Provides the ability to display the index graph for a single object and a path to the garbage collection root. It also provides the ability to merge input and output views.
    • Time
      Displays a histogram of the resolution time for the logged object.
    • Check Inspections
      Shows a number of actions that will analyze the subset of the current set of objects under a certain condition, essentially a filtering process.
    • Graph graph
      You need to manually add objects to the diagram in the references view and the biggest view, which can display both incoming and outgoing references to objects, and can easily find the source of the garbage collector.

Tips: Click "Go to Start" on the toolbar to re-count the heap memory, which is back to the initial state.

  

3.2.3 CPU View CPU views

Jprofiler provides different ways to record an access tree to optimize performance and detail. Thread or thread groups and thread conditions can be selected by all views. All views can be clustered onto different tiers, such as methods, classes, packages, or Java EE components. The CPU Views section includes:

  

    • Access Tree Call Trees
      Displays an accumulated top-down tree that contains all the access queues that have been logged in the JVM. Both JDBC,JMS and Jndi service requests are commented on in the request tree. The request tree can be split according to the different needs of the servlet and JSP for the URL.
    • Hot spots
      Displays a list of the methods that consumed the most time. A backtracking tree can be displayed for each hotspot. The hotspot can be evaluated according to the method request, JDBC,JMS and Jndi service requests, and by URL requests.
    • Access Graph Call Graph
      Displays a diagram of the access queue starting from the selected method, class, package, or Java EE component.
    • Methods Statistic Method Statistis
      Displays the details of the call time for the method recorded over time.
3.2.4 Threading View Thread views

Jprofiler determines its operational state by monitoring the history of threads, and monitors whether a thread is blocked or not, and the methods managed by one of the threads are presented in a tree-like form. For threading profiling, Jprofiler provides the following views:

  

    • Threading History Thread
      Displays an activity schedule that is associated with thread activity and thread state.
    • Threading Monitoring Thread Monitor
      Displays a list of all active threads and their current activity status.
    • Threads Dump Thread Dumps
      Displays the stack trace for all threads.
3.2.5 Monitor View Monitor "Monitor & Locked"

Jprofiler provides a different view of the monitor as follows:

  

    • Currently locked chart current Locking graph
      Displays the current lock condition in the JVM.
    • Current Monitor Monitors
      Displays the thread operations that are currently waiting or blocking.
    • Lock Historical Chart Locking History graph
      Displays the history of the lock recorded in the JVM.
    • Monitor History
      Shows the history of waiting or blocking.
    • Monitor usage Statistics monitor usage Statistics
      Calculates the data monitored by the statistics monitor.
3.2.6 VM Remote Sensing Survey technology view VM Telemetry views[merge into telemetries]

Observing the internal state of the JVM, Jprofiler provides a different view of the remote Sensing survey as follows:

  

      • Memory Memories
        Displays the usage and stack size activity schedule for the stack.
      • Recorded Objects Recorded Objects
        Displays an activity schedule for a chart of active objects and arrays.
      • Recorded production Recorded throughput
        Displays the cumulative schedule of activities for the JVM to be produced and released over time.
      • Garbage collection Activities GC activity
        Displays an activity schedule for the garbage collection activity.
      • Class Classes
        Displays the active timesheet for a chart with the loaded class.
      • Thread Threads
        Displays an activity schedule with a dynamic thread graph.
      • CPU Loads CPU Load
        Displays the CPU load graph for a period of time.

java-jprofiler-monitoring Performance "five"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.