JCMD(1) JDK Commands JCMD(1) (NAME) jcmd - (JVM) (SYNOPSIS) jcmd [pid | main-class] command... | PerfCounter.print | -f filename jcmd [-l] jcmd -h pid jcmd (PID) . main-class jcmd (main class) . command command jcmd JVM . jcmd help (jcmd pid help) pid . pid 0 . . ( -l). Perfcounter.print (performance counters) . -f filename filename . -l . JVM ps PID . : jcmd jcmd -l . -h jcmd . jcmd (diagnostic command) JVM . JVM (effective user and group identifiers) JVM . . . : jcmd pid help command (' ") . (\) . ( ). (pid) (main-class) jcmd Java Java . 0 Java . JCMD (COMMANDS FOR JCMD) command jcmd JVM . jcmd help (jcmd pid help) pid Java . pid 0 Java . Java . Java docker ( -l). : help [options] [arguments] . : o command name: (STRING ) : key key=value . : o -all: () (BOOLEAN false). Compiler.codecache code cache . : : java.lang.management.ManagementPermission(monitor) Compiler.codelist code cache (alive) . : : java.lang.management.ManagementPermission(monitor) Compiler.queue . : : java.lang.management.ManagementPermission(monitor) Compiler.directives_add *filename* *arguments* . : : java.lang.management.ManagementPermission(monitor) : filename: (STRING ) Compiler.directives_clear . : : java.lang.management.ManagementPermission(monitor) Compiler.directives_print . : : java.lang.management.ManagementPermission(monitor) Compiler.directives_remove . : : java.lang.management.ManagementPermission(monitor) GC.class_histogram [options] heap Java . : --- heap . : java.lang.management.ManagementPermission(monitor) : key key=value . : o -all: () (unreachable) (BOOLEAN false) GC.finalizer_info (finalization queue) Java . : : java.lang.management.ManagementPermission(monitor) GC.heap_dump [options] [arguments] (dump) HPROF heap Java . : --- heap . GC -all . : java.lang.management.ManagementPermission(monitor) : key key=value . :.IP o 2 -all: () (BOOLEAN false) : o filename: (STRING ) GC.heap_info (heap) . : : java.lang.management.ManagementPermission(monitor) GC.run java.lang.System.gc() . : --- . GC.run_finalization java.lang.System.runFinalization() . : --- . JFR.check [options] flight recording : : (options) key key=value . . : o name: () flight recording. (STRING ) o verbose: () (BOOLEAN false) JFR.configure [options] flight recording : : (options) key key=value . . : o globalbuffercount: () (global buffers). : memorysize . JFR . (STRING memorysize ) o globalbuffersize: () . : memorysize . JFR . (STRING memorysize ) o maxchunksize: () (data chunk) : 'm' 'M' 'g' 'G' . JFR . (STRING 12M) o memorysize: () : 'm' 'M' 'g' 'G' . JFR . (STRING 10M) o repositorypath: () . (STRING . /tmp . TMP .) o stackdepth: () (stack traces). 64 . JFR . (LONG 64) o thread_buffer_size: () (thread) : 'k' 'K' 'm' 'M' . . JFR . (STRING 8k) o samplethreads: () . (BOOLEAN true) JFR.dump [options] flight recording : : (options) key key=value . . . : o begin: () . . (STRING ) o end: () . . (STRING ) : begin end java.time.LocalTime::parse(STRING) java.time.LocalDateTime::parse(STRING) java.time.Instant::parse(STRING) . : "13:20:15" "2020-03-17T09:00:00" "2020-03-17T09:00:00Z". : begin end (timestamps) flight recording . "s" "m" "h" . : "-12h" "-15m" "-30s". o filename: () flight recording . PID . PID . (STRING ) o maxage: () flight recording . (INTEGER 's' 'm' 'h' ) o maxsize: () flight recording : 'm' 'M' 'g' 'G' . (STRING ).IP o 2 name: () . (dump) . (STRING ) o path-to-gc-root: () (GC) . (memory leaks) . . (BOOLEAN false) JFR.start [options] (flight recording) : : (options) key key=value . . (options): o delay: () ( INTEGER 's' 'm' 'h' 0s) o disk: () (BOOLEAN true) o dumponexit: () (JVM). 'true' filename . (PID) . ( : id-1-2019_12_12_10_41.jfr) (BOOLEAN false) o duration: () . 0s (INTEGER 's' 'm' 'h' 0s) o filename: () . PID . PID . (STRING ) o maxage: () . disk true . 0s . (INTEGER 's' 'm' 'h' 0s) o maxsize: () : 'm' 'M' 'g' 'G' . disk 'true' . maxchunksize JFR.configure . (STRING 0 ( )) o name: () . . . (STRING ) o path-to-gc-root: () (GC) . . . settings 'profile' (stack trace) . (BOOLEAN false) o settings: () . (',') . JAVA-HOME/lib/jfr . (profiles) JDK JAVA-HOME/lib/jfr : 'default.jfc': (overhead) 'profile.jfc': 'default.jfc' . . none . (STRING JAVA-HOME/lib/jfr/default.jfc) .jfc : o option: () . JAVA_HOME/bin/jfr . o event-setting: () . : #= . '+' . (whitespace) .jfc . .jfc . 20ms. Javadoc jdk.jfr . JFR.stop [options] (flight recording) : : (options) key key=value . . (options): o filename: () . . (STRING ) o name: () (STRING ) JVMTI.agent_load [arguments] (native agent) JVMTI . : : java.lang.management.ManagementPermission(control) (arguments): o library path: JVMTI . (STRING ) o agent option: () . (STRING ) JVMTI.data_dump JVM (data-dump) JVMTI . : : java.lang.management.ManagementPermission(monitor) ManagementAgent.start [options] (remote management agent) . : --- : key key=value . : o config.file: () com.sun.management.config.file (STRING ) o jmxremote.host: () com.sun.management.jmxremote.host (STRING ) o jmxremote.port: () com.sun.management.jmxremote.port (STRING ) o jmxremote.rmi.port: () com.sun.management.jmxremote.rmi.port (STRING ) o jmxremote.ssl: () com.sun.management.jmxremote.ssl (STRING ) o jmxremote.registry.ssl: () com.sun.management.jmxremote.registry.ssl (STRING ) o jmxremote.authenticate: () com.sun.management.jmxremote.authenticate (STRING ) o jmxremote.password.file: () com.sun.management.jmxremote.password.file (STRING ) o jmxremote.access.file: () com.sun.management.jmxremote.acce ss.file (STRING ) o jmxremote.login.config: () com.sun.management.jmxremote.log in.config (STRING ) o jmxremote.ssl.enabled.cipher.suites: () com.sun.management . o jmxremote.ssl.enabled.cipher.suite: (STRING ) o jmxremote.ssl.enabled.protocols: () com.sun.management.jmxr emote.ssl.enabled.protocols (STRING ) o jmxremote.ssl.need.client.auth: () com.sun.management.jmxre mote.need.client.auth (STRING ) o jmxremote.ssl.config.file: () com.sun.management.jmxremote. ssl_config_file (STRING ) o jmxremote.autodiscovery: () com.sun.management.jmxremote.au todiscovery (STRING ) o jdp.port: () com.sun.management.jdp.port (INT ) o jdp.address: () com.sun.management.jdp.address (STRING ) o jdp.source_addr: () com.sun.management.jdp.source_addr (STRING ) o jdp.ttl: () com.sun.management.jdp.ttl (INT ) o jdp.pause: () com.sun.management.jdp.pause (INT ) o jdp.name: () com.sun.management.jdp.name (STRING ) ManagementAgent.start_local . : --- ManagementAgent.status . : --- : java.lang.management.ManagementPermission(monitor) ManagementAgent.stop . : --- Thread.print [] thread (stacktrace) . : --- thread. : java.lang.management.ManagementPermission(monitor) : key key=value . : o -l: () java.util.concurrent (BOOLEAN false) VM.cds [] (dump) . : --- : java.lang.management.ManagementPermission(monitor) : o subcmd: static_dump o filename: () (dump) (STRING ) filename pid JVM . java_pid1234_static.jsa java_pid5678_dynamic.jsa . filename JVM . VM.classloaders [] classloader . : --- class loader . : java.lang.management.ManagementPermission(monitor) key key=value . : o show-classes: () . (BOOLEAN false) o verbose: () . (BOOLEAN false) o fold: () loader . (BOOLEAN true) VM.classloader_stats ClassLoader . : : java.lang.management.ManagementPermission(monitor) VM.class_hierarchy [options] [arguments] . ClassLoaderData* ClassLoader (bootstrap class loader) "null" . : --- . : java.lang.management.ManagementPermission(monitor) : key key=value . : o -i: () . (BOOLEAN false) o -s: () . . (BOOLEAN false) : o classname: () . . (STRING ) VM.command_line VM . : : java.lang.management.ManagementPermission(monitor) VM.dynlibs . : : java.lang.management.ManagementPermission(monitor) VM.info JVM . : : java.lang.management.ManagementPermission(monitor) VM.log [options] // . : : java.lang.management.ManagementPermission(control) : : key key=value . o output: () (#) . (STRING ) o output_options: () . (STRING ) o what: () (tags) . (STRING ) o decorators: () (decorators) . 'none' . (STRING ) o disable: () . (BOOLEAN ) o list: () . (BOOLEAN ) o rotate: () . (BOOLEAN ) VM.flags [options] VM . : : java.lang.management.ManagementPermission(monitor) : key key=value . : o -all: () VM (BOOLEAN false). VM.native_memory [options] (native memory) . : : java.lang.management.ManagementPermission(monitor) : key key=value . : o summary: () (runtime) (committed) . (BOOLEAN false) o detail: () >= 1K (callsite) . (BOOLEAN false) o baseline: () (baseline) . (BOOLEAN false) o summary.diff: () . (BOOLEAN false) o detail.diff: () . (BOOLEAN false) o shutdown: () . (BOOLEAN false) o statistics: () (tracker) . (BOOLEAN false) o scale: () KB MB GB (STRING KB) VM.print_touched_methods JVM () . : --- Java . VM.set_flag [] VM . : : java.lang.management.ManagementPermission(control) : o flag name: (STRING ) o string value: () (STRING ) VM.stringtable [] . : --- Java . : java.lang.management.ManagementPermission(monitor) : key key=value . : o -verbose: () (BOOLEAN false) VM.symboltable [] . : --- Java . : java.lang.management.ManagementPermission(monitor) : key key=value . : o -verbose: () (BOOLEAN false) VM.systemdictionary . : : java.lang.management.ManagementPermission(monitor) : key key=value . : o verbose: () (BOOLEAN false). VM.system_properties . : : java.util.PropertyPermission(*, read) VM.uptime [] VM . : : key key=value . : o -date: () (BOOLEAN false) VM.version JVM . : : java.util.PropertyPermission(java.vm.version, read) JDK 17 2021 JCMD(1)