Original article:
Http://www.infoq.com/cn/news/2011/08/jprofiler7
J-Technologies Co., Ltd. released jprofiler 7.0 some time ago. Jprofiler is a Java SE/EE profiling tool that features CPU analysis, memory analysis, thread analysis, and Vm telemetry. New Features of version 7.0 include:
- Analyze the built-in probes for JDBC, JMS, JNDI, Servlet, files, sockets, and processes.
- You can use the API to customize the probe, or directly configure it in the jprofiler GUI.
- The call Tree View analyzes executor, AWT, SWT, and thread-initiated request tracking.
- Check view in heap traversal.
- In the heap traversal tool, the reference view that references other objects can display the original values and script filters.
- You can call the tostring () method of the object to display values in several views of the heap traversal tool.
- The reference view and Chart view of the traversal are redesigned.
- You can view historical information in the call Tree View.
- Analyze long-running AWT events in the call tree.
- Jprofiler can directly input the script to execute the action of the "run script" Trigger.
- The thread group name is displayed in the thread history view.
- All row and column filters are displayed in the monitor history view.
- In connection mode, thread creation is now recorded.
- Jprofiler can now be integrated into netbeans as a standalone application to support 32-bit and 64-bit hybrid installation.
- WebSphere 8 integration wizard.
Jprofiler now has built-in probes for analysis of JDBC, JMS, JNDI, Servlet, files, sockets, and processes, which can record and analyze data of each subsystem. The probe hasTimeline View. For example, the database connections displayed in the timeline can indicate when these connections are idle, when a statement is returned, or when a transaction is executed. There is also a probeEvent ViewAnd displays the event, thread, and stack trace information. For example, the JDBC probe displays events that connect to the database or execute queries. The probe also displays detailed information and statistical information.Object View, Display method call overhead is the most expensiveHotspot View, There is anotherTelemetry ViewTo display the telemetry information published by the probe graphically. These built-in probes can be configured in jprofiler's session settings.
Jprofiler also supports creation of custom probes. It provides an API to develop custom probes and deploy the custom probes with the applications to be analyzed. Jprofiler also provides a custom probe wizard that allows you to customize the probe in the jprofiler GUI. You can specify the method to be intercepted in the application, and create the called "interception script" with the assistance of the jprofiler code editor ". You can directly add or modify a custom probe without restarting the application to be analyzed. Please note that this version also addsRun the script triggerThis is also a way to execute code when calling a specific method, which can replace a simple custom probe.
Jprofiler also introducesRequest trackingThis simplifies the analysis of parallel and multi-threaded applications. Request tracing willCall Tree ViewConnect the call points and execution points of different threads. For example, you can use this function to determine the time spent on completing an asynchronous task, or find out the origin of the asynchronous task. Executors, thread initiation, and AWT/SWT events can all be usedRequest tracking.
The heap traversal tool of jprofiler is also enhanced.
- InReference ViewAnd referenced by other objectsReference ViewYou can see the object list. The original data is directly displayed in the reference view that references other objects.
- Object GraphIt is a separate view independent of the existing object set. You can add or delete objects or remove items without connection. You can also search for paths between selected objects.
- CurrentlyReference ViewYou can use the filter. You can limit this object to the original value of the selected reference chain, or enter a filter expression during the active analysis session.
- In the reference view, you can call the tostring () method of the object to evaluate and display the value during the active analysis session.
- AddedCheck ViewYou can check the existing object set in this view. You can search for repeated strings, repeated original wrappers, repeated arrays, sparse arrays, zero-length arrays, corrupted map of key values, weak referenced objects, and too many referenced objects, the object that references and uses the custom filter expression.
The minimum price for a standard license is USD 499 per developer. There is a 10-day trial. If you have a copy of the jprofiler Support Service of the old version, you can upgrade the old license for free. If no support service is available, you need to purchase an upgrade.
Jprofiler's open-source alternative is Java's visualvm. Commercial alternatives include yourkit and Jprobe.
For more details about jprofiler 7.0, visit the jprofiler new features and change history page.
View Original English text:Jprofiler 7: probes, threads and heap inspections