< prev index next >

src/jdk.jcmd/share/man/jcmd.1

Print this page

 922 \f[B]Note:\f[R]
 923 .PP
 924 The following \f[I]options\f[R] must be specified using either
 925 \f[I]key\f[R] or \f[I]key\f[R]\f[V]=\f[R]\f[I]value\f[R] syntax.
 926 .PP
 927 \f[I]options\f[R]:
 928 .IP \[bu] 2
 929 \f[V]-overwrite\f[R]: (Optional) May overwrite existing file (BOOLEAN,
 930 false)
 931 .IP \[bu] 2
 932 \f[V]-format\f[R]: (Optional) Output format (\[dq]plain\[dq] or
 933 \[dq]json\[dq]) (STRING, plain)
 934 .PP
 935 \f[I]arguments\f[R]:
 936 .IP \[bu] 2
 937 \f[I]filepath\f[R]: The file path to the output file (STRING, no default
 938 value)
 939 .RE
 940 .TP
 941 \f[V]Thread.print\f[R] [\f[I]options\f[R]]
 942 Prints all threads with stacktraces.
 943 .RS
 944 .PP
 945 Impact: Medium --- depends on the number of threads.
 946 .PP
 947 \f[B]Note:\f[R]
 948 .PP
 949 The following \f[I]options\f[R] must be specified using either
 950 \f[I]key\f[R] or \f[I]key\f[R]\f[V]=\f[R]\f[I]value\f[R] syntax.
 951 .PP
 952 \f[I]options\f[R]:
 953 .IP \[bu] 2
 954 \f[V]-e\f[R]: (Optional) Print extended thread information (BOOLEAN,
 955 false)
 956 .IP \[bu] 2
 957 \f[V]-l\f[R]: (Optional) Prints \f[V]java.util.concurrent\f[R] locks
 958 (BOOLEAN, false)
 959 .RE
 960 .TP








 961 \f[V]VM.cds\f[R] [\f[I]arguments\f[R]]
 962 Dump a static or dynamic shared archive that includes all currently
 963 loaded classes.
 964 .RS
 965 .PP
 966 Impact: Medium --- pause time depends on number of loaded classes
 967 .PP
 968 \f[I]arguments\f[R]:
 969 .IP \[bu] 2
 970 \f[I]subcmd\f[R]: must be either \f[V]static_dump\f[R] or
 971 \f[V]dynamic_dump\f[R] (STRING, no default value)
 972 .IP \[bu] 2
 973 \f[I]filename\f[R]: (Optional) Name of the shared archive to be dumped
 974 (STRING, java_pid<pid>_<subcmd>.jsa)
 975 .PP
 976 If \f[V]filename\f[R] is not specified, a default file name is chosen
 977 using the pid of the target JVM process.
 978 For example, java_pid1234_static.jsa, java_pid5678_dynamic.jsa, etc.
 979 .PP
 980 If \f[V]filename\f[R] is not specified as an absolute path, the archive

 922 \f[B]Note:\f[R]
 923 .PP
 924 The following \f[I]options\f[R] must be specified using either
 925 \f[I]key\f[R] or \f[I]key\f[R]\f[V]=\f[R]\f[I]value\f[R] syntax.
 926 .PP
 927 \f[I]options\f[R]:
 928 .IP \[bu] 2
 929 \f[V]-overwrite\f[R]: (Optional) May overwrite existing file (BOOLEAN,
 930 false)
 931 .IP \[bu] 2
 932 \f[V]-format\f[R]: (Optional) Output format (\[dq]plain\[dq] or
 933 \[dq]json\[dq]) (STRING, plain)
 934 .PP
 935 \f[I]arguments\f[R]:
 936 .IP \[bu] 2
 937 \f[I]filepath\f[R]: The file path to the output file (STRING, no default
 938 value)
 939 .RE
 940 .TP
 941 \f[V]Thread.print\f[R] [\f[I]options\f[R]]
 942 Prints all platform threads with stacktraces.
 943 .RS
 944 .PP
 945 Impact: Medium --- depends on the number of threads.
 946 .PP
 947 \f[B]Note:\f[R]
 948 .PP
 949 The following \f[I]options\f[R] must be specified using either
 950 \f[I]key\f[R] or \f[I]key\f[R]\f[V]=\f[R]\f[I]value\f[R] syntax.
 951 .PP
 952 \f[I]options\f[R]:
 953 .IP \[bu] 2
 954 \f[V]-e\f[R]: (Optional) Print extended thread information (BOOLEAN,
 955 false)
 956 .IP \[bu] 2
 957 \f[V]-l\f[R]: (Optional) Prints \f[V]java.util.concurrent\f[R] locks
 958 (BOOLEAN, false)
 959 .RE
 960 .TP
 961 \f[V]Thread.vthread_summary\f[R]
 962 Print the virtual thread scheduler, timeout schedulers, I/O pollers, and
 963 thread groupings.
 964 .RS
 965 .PP
 966 Impact: Low
 967 .RE
 968 .TP
 969 \f[V]VM.cds\f[R] [\f[I]arguments\f[R]]
 970 Dump a static or dynamic shared archive that includes all currently
 971 loaded classes.
 972 .RS
 973 .PP
 974 Impact: Medium --- pause time depends on number of loaded classes
 975 .PP
 976 \f[I]arguments\f[R]:
 977 .IP \[bu] 2
 978 \f[I]subcmd\f[R]: must be either \f[V]static_dump\f[R] or
 979 \f[V]dynamic_dump\f[R] (STRING, no default value)
 980 .IP \[bu] 2
 981 \f[I]filename\f[R]: (Optional) Name of the shared archive to be dumped
 982 (STRING, java_pid<pid>_<subcmd>.jsa)
 983 .PP
 984 If \f[V]filename\f[R] is not specified, a default file name is chosen
 985 using the pid of the target JVM process.
 986 For example, java_pid1234_static.jsa, java_pid5678_dynamic.jsa, etc.
 987 .PP
 988 If \f[V]filename\f[R] is not specified as an absolute path, the archive
< prev index next >