1N/A * j_stat.d - Java operation stats using DTrace. 1N/A * Written for the Java hotspot DTrace provider. 1N/A * $Id: j_stat.d 64 2007-10-04 08:35:29Z claire $ 1N/A * This traces activity from all Java processes on the system with hotspot 1N/A * provider support (1.6.0). Method calls and object allocation are only 1N/A * visible when using the flag "+ExtendedDTraceProbes". eg, 1N/A * java -XX:+ExtendedDTraceProbes classfile 1N/A * USAGE: j_stat.d [interval [count]] 1N/A * EXEC/s Java programs executed per second, including 1N/A * those without Java provider support 1N/A * THREAD/s Threads created, per second 1N/A * METHOD/s Methods called, per second 1N/A * OBJNEW/s Objects created, per second 1N/A * CLOAD/s Class loads, per second 1N/A * EXCP/s Exceptions raised, per second 1N/A * GC/s Garbage collects, per second 1N/A * The numbers are per second counts for the interval specified. The default 1N/A * interval is 1 second. 1N/A * If you see a count in "EXECS" but not in the other columns, then your 1N/A * Java software is probably not running with the DTrace hotspot provider. 1N/A * If you see counts in "CLOAD" but not in "METHODS", then you Java 1N/A * software probably isn't running with "+ExtendedDTraceProbes". 1N/A * COPYRIGHT: Copyright (c) 2007 Brendan Gregg. 1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License, Version 1.0 only 1N/A * (the "License"). You may not use this file except in compliance 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * 09-Sep-2007 Brendan Gregg Created this. 1N/A printf(
"%-20s %6s %8s %8s %8s %8s %6s %6s\n",
"TIME",
"EXEC/s",
1N/A "THREAD/s",
"METHOD/s",
"OBJNEW/s",
"CLOAD/s",
"EXCP/s",
"GC/s");