Jprofiler+linux+weblogic feature brief, configuration and memory leak analysis examples

Source: Internet
Author: User
Tags jprofiler

Jprofiler Introduction:

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.

First, the main functions of the introduction

1. Memory Profiler

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
        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.

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
        Displays all classes and their instances.
      • 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.
      • Data
        Displays instance and class data for a single object.
      • Time
        Displays a histogram of the resolution time for the logged object.

3. CPU Profiling CPU Profiler

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.

4. Threading Profiling Thread Profiler

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.
      • Deadlock Detection Chart Deadlock Detection
        Displays a deadlock chart that contains all of the deadlocks in the JVM.
      • Currently used monitor current monitor useage
        Displays the monitors that are currently in use and includes their associated threads.
      • History Test Records historical usage
        Displays a history of significant wait events and blocking events.
      • Monitoring Usage Status Monitor usage statistics
        Displays statistical monitoring data for packet monitoring, threading, and monitoring classes.

5. VM Remote Sensing Survey technology VM telemetry

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

      • Heaps heap
        Displays the usage and heap size activity schedule for a heap.
      • Recorded Objects Recorded objects
        Displays an activity schedule for a chart of active objects and arrays.
      • Garbage Collection Garbage collector
        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.

Attached: Jprofiler Getting Started note: http://blog.csdn.net/chendc201/article/details/22897999

Second, weblogic+jprofiler+linux configuration

A: Preparation before installation:

Jprofiler Client: Jprofiler_windows_7_2_2

Jprofiler Service side: jprofiler_linux_7_2_2.sh

Service side:

777 jprofiler_linux_7_2_2.sh  //authorization
./jprofiler_linux_7_2_2.sh-c  //Installation

Server: Key registration code: http://www.cnblogs.com/what-/p/7284102.html

Client and server installation run the. exe Next fool can

B:jprofiler configuration WebLogic

Server-side installation, register key, start Jprofiler

CP WebLogic Bin directory under startweblogic.sh, custom named file path: for example: D:\AA

OK to continue when the above operation is complete, start the Windows local Jprofiler

Next: Next

Next:

Next:

Select the server-side JDK version:

Java-version View

Next:

Destination server IP

Next:

Server Jprofiler installation directory, default is opt directory

Select WebLogic Startup script

Upload the generated startweblogic_jprofiler.sh to the WebLogic startup directory

Prompt after restarting WebLogic connection

The link Success page shows as follows:

Third, actual combat

A: Mission Objectives

Find out why memory is growing in your project

B: Configuration Instructions

Os:windows 7

Server: WebLogic C

JDK version: 1.8.0_77

Monitoring type: remote

Jprofiler Local Installation: D:\jprofiler7\bin\jprofiler.exe

Server-side installation:/opt/jprofiler7

Weblogic:centos 6.5 Path:/home/weblogic ... bin/

C: Test Project

New Web Project Jprofiler

Build Package Test.jprofiler

Under the package to build the class files Testmain.java and Testbean.java

PS: Do not choose to be at ease when the effort is made:

Jprofiler+linux+weblogic feature brief, configuration and memory leak analysis examples

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.