Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 jdk.jcmd.jmod - JCmd Tool
JDK 17 jdk.jcmd.jmod is the JMOD file for JDK 17 JCmd tool, which can be invoked by the "jcmd" command.
JDK 17 JCmd tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jcmd.jmod.
JDK 17 JCmd tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JCmd source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jcmd.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jstat/JStatLogger.java
/* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.tools.jstat; import java.util.*; import java.io.*; import sun.jvmstat.monitor.*; import sun.jvmstat.monitor.event.*; import java.util.regex.PatternSyntaxException; /** * Class to sample and output various jvmstat statistics for a target Java * a target Java Virtual Machine. * * @author Brian Doherty * @since 1.5 */ public class JStatLogger { private MonitoredVm monitoredVm; private volatile boolean active = true; public JStatLogger(MonitoredVm monitoredVm) { this.monitoredVm = monitoredVm; } /** * print the monitors that match the given monitor name pattern string. */ public void printNames(String names, Comparator<Monitor> comparator, boolean showUnsupported, PrintStream out) throws MonitorException, PatternSyntaxException { // get the set of all monitors List<Monitor> items = monitoredVm.findByPattern(names); Collections.sort(items, comparator); for (Monitor m: items) { if (!(m.isSupported() || showUnsupported)) { continue; } out.println(m.getName()); } } /** * print name=value pairs for the given list of monitors. */ public void printSnapShot(String names, Comparator<Monitor> comparator, boolean verbose, boolean showUnsupported, PrintStream out) throws MonitorException, PatternSyntaxException { // get the set of all monitors List<Monitor> items = monitoredVm.findByPattern(names); Collections.sort(items, comparator); printList(items, verbose, showUnsupported, out); } /** * print name=value pairs for the given list of monitors. */ public void printList(List<Monitor> list, boolean verbose, boolean showUnsupported, PrintStream out) throws MonitorException { // print out the name of each available counter for (Monitor m: list ) { if (!(m.isSupported() || showUnsupported)) { continue; } StringBuilder buffer = new StringBuilder(); buffer.append(m.getName()).append("="); if (m instanceof StringMonitor) { buffer.append("\"").append(m.getValue()).append("\""); } else { buffer.append(m.getValue()); } if (verbose) { buffer.append(" ").append(m.getUnits()); buffer.append(" ").append(m.getVariability()); buffer.append(" ").append(m.isSupported() ? "Supported" : "Unsupported"); } out.println(buffer); } } /** * method to for asynchronous termination of sampling loops */ public void stopLogging() { active = false; } /** * print samples according to the given format. */ public void logSamples(OutputFormatter formatter, int headerRate, int sampleInterval, int sampleCount, PrintStream out) throws MonitorException { long iterationCount = 0; int printHeaderCount = 0; // if printHeader == 0, then only an initial column header is desired. int printHeader = headerRate; if (printHeader == 0) { // print the column header once, disable future printing out.println(formatter.getHeader()); printHeader = -1; } while (active) { // check if it's time to print another column header if (printHeader > 0 && --printHeaderCount <= 0) { printHeaderCount = printHeader; out.println(formatter.getHeader()); } out.println(formatter.getRow()); // check if we've hit the specified sample count if (sampleCount > 0 && ++iterationCount >= sampleCount) { break; } try { Thread.sleep(sampleInterval); } catch (Exception e) { }; } } }
⏎ sun/tools/jstat/JStatLogger.java
Or download all of them as a single archive file:
File name: jdk.jcmd-17.0.5-src.zip File size: 51997 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jconsole.jmod - JConsole Tool
2023-08-17, 2844👍, 0💬
Popular Posts:
JDK 11 jdk.javadoc.jmod is the JMOD file for JDK 11 Java Document tool, which can be invoked by the ...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
Where to find answers to frequently asked questions on Download and Installing of Older Versions? He...
What Is javamail-1_2.zip? javamail-1_2.zip is the binary package of JavaMail API 1.2 in ZIP format. ...