JDK-6959965 : jstat: Add new -classload option to print class loading statistics
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-06-09
  • Updated: 2010-07-13
  • Resolved: 2010-06-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b100Fixed
Related Reports
Relates :  
Description
New perf counters were added to aid class loading performance measurement. We should extend jstat tool to print out the new class loading statistics.
When the newer version of the following test:

    sun/tools/jstat/jstatOptions1.sh

is used with older bits, then there will be a failure in
the golden file comparison due to the new option.

Here is a snippet of the failure from the .jtr file:

----------System.out:(2/19)----------
1a2
> -classload
----------System.err:(0/0)----------
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1


I've added this note so this issue shows up as a known failure
during test failure analysis.

Comments
EVALUATION Changeset: http://hg.openjdk.java.net/jdk7/tl-gate/jdk/rev/1474dfa499e3
10-06-2010

EVALUATION Useful metrcs for understanding the class startup cost such as exclusive time in clinit, class linking, and verification are collected in the new perf counters.
09-06-2010