提交 448736a5 编写于 作者: A asaha

Merge

...@@ -379,6 +379,7 @@ fc4f5546417071c70cffd89ca83302309f6f7da9 jdk8u40-b17 ...@@ -379,6 +379,7 @@ fc4f5546417071c70cffd89ca83302309f6f7da9 jdk8u40-b17
7784dab075ed82be2275f4694164bbb9cc1cde3f jdk8u40-b20 7784dab075ed82be2275f4694164bbb9cc1cde3f jdk8u40-b20
564bca490631e4ed4f7993e6633ed9ee62067624 jdk8u40-b21 564bca490631e4ed4f7993e6633ed9ee62067624 jdk8u40-b21
d168113f9841a77b3cee3a6a45fcd85b7351ac90 jdk8u40-b22 d168113f9841a77b3cee3a6a45fcd85b7351ac90 jdk8u40-b22
41fe61722ce96b75dd3a1ba5072473122e21e5a0 jdk8u40-b23
1ecc234bd38950a2bc047aa253a5e803f0836a4e jdk8u45-b00 1ecc234bd38950a2bc047aa253a5e803f0836a4e jdk8u45-b00
e0c7864bbca3f76cde680722f2ae58dff2bff61d jdk8u45-b01 e0c7864bbca3f76cde680722f2ae58dff2bff61d jdk8u45-b01
9505c0392cddbfb905401e9fccc23262edc3254f jdk8u45-b02 9505c0392cddbfb905401e9fccc23262edc3254f jdk8u45-b02
......
此差异已折叠。
'\" t '\" t
.\" Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
.\" .\"
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
.\" .\"
.\" This code is free software; you can redistribute it and/or modify it .\" This code is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License version 2 only, as .\" under the terms of the GNU General Public License version 2 only, as
.\" published by the Free Software Foundation. .\" published by the Free Software Foundation.
.\" .\"
.\" This code is distributed in the hope that it will be useful, but WITHOUT .\" This code is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
.\" version 2 for more details (a copy is included in the LICENSE file that .\" version 2 for more details (a copy is included in the LICENSE file that
.\" accompanied this code). .\" accompanied this code).
.\" .\"
.\" You should have received a copy of the GNU General Public License version .\" You should have received a copy of the GNU General Public License version
.\" 2 along with this work; if not, write to the Free Software Foundation, .\" 2 along with this work; if not, write to the Free Software Foundation,
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
.\" .\"
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
.\" or visit www.oracle.com if you need additional information or have any .\" or visit www.oracle.com if you need additional information or have any
.\" questions. .\" questions.
.\" .\"
.\" Arch: generic .\" Title: jcmd
.\" Software: JDK 8 .\" Language: English
.\" Date: 21 November 2013 .\" Date: 03 March 2015
.\" SectDesc: Troubleshooting Tools .\" SectDesc: Troubleshooting Tools
.\" Title: jcmd.1 .\" Software: JDK 8
.\" Arch: generic
.\" Part Number: E38207-04
.\" Doc ID: JSSON
.\" .\"
.if n .pl 99999 .if n .pl 99999
.TH jcmd 1 "21 November 2013" "JDK 8" "Troubleshooting Tools" .TH "jcmd" "1" "03 March 2015" "JDK 8" "Troubleshooting Tools"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673 .\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq .ie \n(.g .ds Aq \(aq
.el .ds Aq ' .el .ds Aq '
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * set default formatting .\" * set default formatting
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" disable hyphenation .\" disable hyphenation
.nh .nh
.\" disable justification (adjust text to left margin only) .\" disable justification (adjust text to left margin only)
.ad l .ad l
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME"
.SH NAME
jcmd \- Sends diagnostic command requests to a running Java Virtual Machine (JVM)\&. jcmd \- Sends diagnostic command requests to a running Java Virtual Machine (JVM)\&.
.SH SYNOPSIS .SH "SYNOPSIS"
.sp .sp
.nf .if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR [\fB\-l\fR|\fB\-h\fR|\fB\-help\fR] \fBjcmd\fR [\fB\-l\fR|\fB\-h\fR|\fB\-help\fR]
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fBPerfCounter\&.print\fR \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fBPerfCounter\&.print\fR
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fB\-f\fR \fIfilename\fR \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fB\-f\fR \fIfilename\fR
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fIcommand\fR[ \fIarguments\fR] \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fIcommand\fR[ \fIarguments\fR]
.fi .fi
.sp .if n \{\
.SH DESCRIPTION .RE
The \f3jcmd\fR utility is used to send diagnostic command requests to the JVM\&. It must be used on the same machine on which the JVM is running, and have the same effective user and group identifiers that were used to launch the JVM\&. .\}
.SH "DESCRIPTION"
.PP
The
\fBjcmd\fR
utility is used to send diagnostic command requests to the JVM\&. It must be used on the same machine on which the JVM is running, and have the same effective user and group identifiers that were used to launch the JVM\&.
.if n \{\
.sp
.\}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fBNote\fR
.ps -1
.br
.TS
allbox tab(:);
l.
T{
.PP
To invoke diagnostic commands from a remote machine or with different identifiers, you can use the
\fBcom\&.sun\&.management\&.DiagnosticCommandMBean\fR
interface\&. For more information about the
\fBDiagnosticCommandMBean\fR
interface, see the API documentation at http://docs\&.oracle\&.com/javase/8/docs/jre/api/management/extension/com/sun/management/DiagnosticCommandMBean\&.html
T}
.TE
.sp 1
.sp .5v
.RE
.PP .PP
\fINote:\fR To invoke diagnostic commands from a remote machine or with different identiers, you can use the \f3com\&.sun\&.management\&.DiagnosticCommandMBean\fR interface\&. For more information about the \f3DiagnosticCommandMBean\fR interface, see the API documentation at http://download\&.java\&.net/jdk8/docs/jre/api/management/extension/com/sun/management/DiagnosticCommandMBean\&.html If you run
\fBjcmd\fR
without arguments or with the
\fB\-l\fR
option, it prints the list of running Java process identifiers with the main class and command\-line arguments that were used to launch the process\&. Running
\fBjcmd\fR
with the
\fB\-h\fR
or
\fB\-help\fR
option prints the tool\(cqs help message\&.
.PP .PP
If you run \f3jcmd\fR without arguments or with the \f3-l\fR option, it prints the list of running Java process identifiers with the main class and command-line arguments that were used to launch the process\&. Running \f3jcmd\fR with the \f3-h\fR or \f3-help\fR option prints the tool\(cqs help message\&. If you specify the processes identifier (\fIpid\fR) or the main class (\fImain\-class\fR) as the first argument,
\fBjcmd\fR
sends the diagnostic command request to the Java process with the specified identifier or to all Java processes with the specified name of the main class\&. You can also send the diagnostic command request to all available Java processes by specifying
\fB0\fR
as the process identifier\&. Use one of the following as the diagnostic command request:
.PP .PP
If you specify the processes identifier (\fIpid\fR) or the main class (\fImain-class\fR) as the first argument, \f3jcmd\fR sends the diagnostic command request to the Java process with the specified identifier or to all Java processes with the specified name of the main class\&. You can also send the diagnostic command request to all available Java processes by specifying \f30\fR as the process identifier\&. Use one of the following as the diagnostic command request:
.TP
Perfcounter\&.print Perfcounter\&.print
.RS 4
Prints the performance counters available for the specified Java process\&. The list of performance counters might vary with the Java process\&. Prints the performance counters available for the specified Java process\&. The list of performance counters might vary with the Java process\&.
.TP .RE
-f \fIfilename\fR .PP
.br \-f \fIfilename\fR
The name of the file from which to read diagnostic commands and send them to the specified Java process\&. Used only with the \f3-f\fR option\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\f3#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the \f3stop\fR keyword is read\&. .RS 4
.TP The name of the file from which to read diagnostic commands and send them to the specified Java process\&. Used only with the
\fB\-f\fR
option\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\fB#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the
\fBstop\fR
keyword is read\&.
.RE
.PP
\fIcommand\fR [\fIarguments\fR] \fIcommand\fR [\fIarguments\fR]
The command to be sent to the specified Java process\&. The list of available diagnostic commands for a given process can be obtained by sending the \f3help\fR command to this process\&. Each diagnostic command has its own set of arguments\&. To see the description, syntax, and a list of available arguments for a command, use the name of the command as the argument for the \f3help\fR command\&. .RS 4
The command to be sent to the specified Java process\&. The list of available diagnostic commands for a given process can be obtained by sending the
\fINote:\fR If any arguments contain spaces, you must surround them with single or double quotation marks (\f3\&'\fR or \f3"\fR)\&. In addition, you must escape single or double quotation marks with a backslash (\f3\e\fR) to prevent the operating system shell from processing quotation marks\&. Alternatively, you can surround these arguments with single quotation marks and then with double quotation marks (or with double quotation marks and then with single quotation marks)\&. \fBhelp\fR
.SH OPTIONS command to this process\&. Each diagnostic command has its own set of arguments\&. To see the description, syntax, and a list of available arguments for a command, use the name of the command as the argument for the
\fBhelp\fR
command\&.
.sp
\fBNote:\fR
If any arguments contain spaces, you must surround them with single or double quotation marks (\fB\*(Aq\fR
or
\fB"\fR)\&. In addition, you must escape single or double quotation marks with a backslash (\fB\e\fR) to prevent the operating system shell from processing quotation marks\&. Alternatively, you can surround these arguments with single quotation marks and then with double quotation marks (or with double quotation marks and then with single quotation marks)\&.
.RE
.SH "OPTIONS"
.PP
Options are mutually exclusive\&. Options are mutually exclusive\&.
.TP .PP
-f \fIfilename\fR \-f \fIfilename\fR
.br .RS 4
Reads commands from the specified file\&. This option can be used only if you specify the process identifier or the main class as the first argument\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\f3#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the \f3stop\fR keyword is read\&. Reads commands from the specified file\&. This option can be used only if you specify the process identifier or the main class as the first argument\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\fB#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the
.TP \fBstop\fR
-h, -help keyword is read\&.
.RE
.PP
\-h
.br .br
\-help
.RS 4
Prints a help message\&. Prints a help message\&.
.TP .RE
-l .PP
.br \-l
Prints the list of running Java processes identifiers with the main class and command-line arguments\&. .RS 4
.SH SEE\ ALSO Prints the list of running Java processes identifiers with the main class and command\-line arguments\&.
.TP 0.2i .RE
\(bu .SH "SEE ALSO"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
jps(1) jps(1)
.RE .RE
.br .br
'pl 8.5i 'pl 8.5i
'bp 'bp
'\" t '\" t
.\" Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
.\" .\"
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
.\" .\"
.\" This code is free software; you can redistribute it and/or modify it .\" This code is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License version 2 only, as .\" under the terms of the GNU General Public License version 2 only, as
.\" published by the Free Software Foundation. .\" published by the Free Software Foundation.
.\" .\"
.\" This code is distributed in the hope that it will be useful, but WITHOUT .\" This code is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
.\" version 2 for more details (a copy is included in the LICENSE file that .\" version 2 for more details (a copy is included in the LICENSE file that
.\" accompanied this code). .\" accompanied this code).
.\" .\"
.\" You should have received a copy of the GNU General Public License version .\" You should have received a copy of the GNU General Public License version
.\" 2 along with this work; if not, write to the Free Software Foundation, .\" 2 along with this work; if not, write to the Free Software Foundation,
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
.\" .\"
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
.\" or visit www.oracle.com if you need additional information or have any .\" or visit www.oracle.com if you need additional information or have any
.\" questions. .\" questions.
.\" .\"
.\" Arch: generic .\" Title: jjs
.\" Software: JDK 8 .\" Language: English
.\" Date: 03 March 2015 .\" Date: 03 March 2015
.\" SectDesc: Basic Tools .\" SectDesc: Basic Tools
.\" Title: jjs.1 .\" Software: JDK 8
.\" Arch: generic
.\" Part Number: E38207-04
.\" Doc ID: JSSON
.\" .\"
.if n .pl 99999 .if n .pl 99999
.TH jjs 1 "03 March 2015" "JDK 8" "Basic Tools" .TH "jjs" "1" "03 March 2015" "JDK 8" "Basic Tools"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673 .\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq .ie \n(.g .ds Aq \(aq
.el .ds Aq ' .el .ds Aq '
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * set default formatting .\" * set default formatting
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" disable hyphenation .\" disable hyphenation
.nh .nh
.\" disable justification (adjust text to left margin only) .\" disable justification (adjust text to left margin only)
.ad l .ad l
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME"
.SH NAME
jjs \- Invokes the Nashorn engine\&. jjs \- Invokes the Nashorn engine\&.
.SH SYNOPSIS .SH "SYNOPSIS"
.sp .sp
.nf .if n \{\
\f3\fBjjs\fR [\fIoptions\fR] [\fIscript\-files\fR] [\-\- \fIarguments\fR]\fP .RS 4
.fi .\}
.sp .nf
.TP \fB\fBjjs\fR\fR\fB [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIscript\-files\fR\fR\fB] [\-\- \fR\fB\fIarguments\fR\fR\fB]\fR
.fi
.if n \{\
.RE
.\}
.PP
\fIoptions\fR \fIoptions\fR
One or more options of the \f3jjs\fR command, separated by spaces\&. For more information, see Options\&. .RS 4
.TP One or more options of the
\fIscript-files\fR \fBjjs\fR
command, separated by spaces\&. For more information, see Options\&.
.RE
.PP
\fIscript\-files\fR
.RS 4
One or more script files which you want to interpret using Nashorn, separated by spaces\&. If no files are specified, an interactive shell is started\&. One or more script files which you want to interpret using Nashorn, separated by spaces\&. If no files are specified, an interactive shell is started\&.
.TP .RE
.PP
\fIarguments\fR \fIarguments\fR
All values after the double hyphen marker (\f3--\fR) are passed through to the script or the interactive shell as arguments\&. These values can be accessed by using the \f3arguments\fR property (see )\&. .RS 4
.SH DESCRIPTION All values after the double hyphen marker (\fB\-\-\fR) are passed through to the script or the interactive shell as arguments\&. These values can be accessed by using the
The \f3jjs\fR command-line tool is used to invoke the Nashorn engine\&. You can use it to interpret one or several script files, or to run an interactive shell\&. \fBarguments\fR
.SH OPTIONS property (see Example 3)\&.
The options of the \f3jjs\fR command control the conditions under which scripts are interpreted by Nashorn\&. .RE
.TP .SH "DESCRIPTION"
-ccs=\fIsize\fR , --class-cache-size=\fIsize\fR .PP
.br The
Sets the class cache size (in bytes)\&. Append the letter \f3k\fR or \f3K\fR to indicate kilobytes (KB), \f3m\fR or \f3M\fR to indicate megabytes (MB), \f3g\fR or \f3G\fR to indicate gigabytes (GB)\&. By default, the class cache size is set to 50 bytes\&. The following example shows how to set it to 1024 bytes (1 KB): \fBjjs\fR
.sp command\-line tool is used to invoke the Nashorn engine\&. You can use it to interpret one or several script files, or to run an interactive shell\&.
.nf .SH "OPTIONS"
\f3\-css=100\fP .PP
.fi The options of the
.nf \fBjjs\fR
\f3\-css=1k\fP command control the conditions under which scripts are interpreted by Nashorn\&.
.fi .PP
.nf \-cp \fIpath\fR
\f3\fP .br
.fi \-classpath \fIpath\fR
.sp .RS 4
.TP
-co, --compile-only
.br
Compiles the script without running it\&.
.TP
-cp \fIpath\fR , -classpath \fIpath\fR
.br
Specifies the path to the supporting class files To set multiple paths, the option can be repeated, or you can separate each path with a colon (:)\&. Specifies the path to the supporting class files To set multiple paths, the option can be repeated, or you can separate each path with a colon (:)\&.
.TP .RE
-D\fIname\fR=\fIvalue\fR .PP
.br \-D\fIname\fR=\fIvalue\fR
Sets a system property to be passed to the script by assigning a value to a property name\&. The following example shows how to invoke Nashorn in interactive mode and assign \f3myValue\fR to the property named \f3myKey\fR: .RS 4
.sp Sets a system property to be passed to the script by assigning a value to a property name\&. The following example shows how to invoke Nashorn in interactive mode and assign
.nf \fBmyValue\fR
\f3>> \fIjjs \-DmyKey=myValue\fR\fP to the property named
.fi \fBmyKey\fR:
.nf .sp
\f3jjs> \fIjava\&.lang\&.System\&.getProperty("myKey")\fR\fP .if n \{\
.fi .RS 4
.nf .\}
\f3myValue\fP .nf
.fi \fB>> \fR\fB\fBjjs \-DmyKey=myValue\fR\fR
.nf \fBjjs> \fR\fB\fBjava\&.lang\&.System\&.getProperty("myKey")\fR\fR
\f3jjs>\fP \fBmyValue\fR
.fi \fBjjs>\fR
.nf
\f3\fP .fi
.fi .if n \{\
.sp .RE
.\}
This option can be repeated to set multiple properties\&. This option can be repeated to set multiple properties\&.
.TP .RE
-d=\fIpath\fR , --dump-debug-dir=\fIpath\fR .PP
.br \-doe
Specifies the path to the directory where class files are dumped\&.
.TP
--debug-lines
.br
Generates a line number table in the class file\&. By default, this option is enabled\&. To disable it, specify \f3--debug-lines=false\fR\&.
.TP
--debug-locals
.br
Generates a local variable table in the class file\&.
.TP
-doe, --dump-on-error
.br .br
\-\-dump\-on\-error
.RS 4
Provides a full stack trace when an error occurs\&. By default, only a brief error message is printed\&. Provides a full stack trace when an error occurs\&. By default, only a brief error message is printed\&.
.TP .RE
--early-lvalue-error .PP
.br \-fv
Reports invalid lvalue expressions as early errors (that is, when the code is parsed)\&. By default, this option is enabled\&. To disable it, specify \f3--early-lvalue-error=false\fR\&. When disabled, invalid lvalue expressions will not be reported until the code is executed\&.
.TP
--empty-statements
.br
Preserves empty statements in the Java abstract syntax tree\&.
.TP
-fv, --fullversion
.br .br
\-\-fullversion
.RS 4
Prints the full Nashorn version string\&. Prints the full Nashorn version string\&.
.TP .RE
--function-statement-error .PP
.br \-fx
Prints an error message when a function declaration is used as a statement\&. .RS 4
.TP
--function-statement-warning
.br
Prints a warning message when a function declaration is used as a statement\&.
.TP
-fx
.br
Launches the script as a JavaFX application\&. Launches the script as a JavaFX application\&.
.TP .RE
-h, -help .PP
\-h
.br .br
\-help
.RS 4
Prints the list of options and their descriptions\&. Prints the list of options and their descriptions\&.
.TP .RE
-J\fIoption\fR .PP
.br \-\-language=[es5]
Passes the specified \f3java\fR launcher option to the JVM\&. The following example shows how to invoke Nashorn in interactive mode and set the maximum memory used by the JVM to 4 GB: .RS 4
.sp
.nf
\f3>> \fIjjs \-J\-Xmx4g\fR\fP
.fi
.nf
\f3jjs> \fIjava\&.lang\&.Runtime\&.getRuntime()\&.maxMemory()\fR\fP
.fi
.nf
\f33817799680\fP
.fi
.nf
\f3jjs>\fP
.fi
.nf
\f3\fP
.fi
.sp
This option can be repeated to pass multiple \f3java\fR command options\&.
.TP
--language=[es5]
.br
Specifies the ECMAScript language version\&. The default version is ES5\&. Specifies the ECMAScript language version\&. The default version is ES5\&.
.TP .RE
--lazy-compilation .PP
.br \-ot
Enables lazy code generation strategies (that is, the entire script is not compiled at once)\&. This option is experimental\&.
.TP
--loader-per-compile
.br
Creates a new class loader per compile\&. By default, this option is enabled\&. To disable it, specify \f3--loader-per-compile=false\fR\&.
.TP
--log=\fIsubsystem\fR:\fIlevel\fR
.br
Performs logging at a given level for the specified subsystems\&. You can specify logging levels for multiple subsystems separating them with commas\&. For example:
.sp
.nf
\f3\-\-log=fields:finest,codegen:info\fP
.fi
.sp
.TP
--optimistic-types=[true|false]
.br .br
\-\-optimistic\-types=[true|false]
.RS 4
Enables or disables optimistic type assumptions with deoptimizing recompilation\&. Running with optimistic types will yield higher final speed, but may increase warmup time\&. Enables or disables optimistic type assumptions with deoptimizing recompilation\&. Running with optimistic types will yield higher final speed, but may increase warmup time\&.
.TP .RE
--package=\fIname\fR .PP
.br \-scripting
Specifies the package to which generated class files are added\&. .RS 4
.TP
--parse-only
.br
Parses the code without compiling\&.
.TP
--print-ast
.br
Prints the abstract syntax tree\&.
.TP
--print-code
.br
Prints bytecode\&.
.TP
--print-lower-ast
.br
Prints the lowered abstract syntax tree\&.
.TP
--print-lower-parse
.br
Prints the lowered parse tree\&.
.TP
--print-no-newline
.br
Forces other \f3--print*\fR options to print the output on one line\&.
.TP
--print-parse
.br
Prints the parse tree\&.
.TP
--print-symbols
.br
Prints the symbol table\&.
.TP
-pcs, --profile-callsites
.br
Dumps callsite profile data\&.
.TP
-scripting
.br
Enables shell scripting features\&. Enables shell scripting features\&.
.TP .RE
--stderr=\fIfilename\fR|\fIstream\fR|\fItty\fR .PP
.br \-strict
Redirects the standard error stream to the specified file, stream (for example, to \f3stdout\fR), or text terminal\&. .RS 4
.TP
--stdout=\fIfilename\fR|\fIstream\fR|\fItty\fR
.br
Redirects the standard output stream to the specified file, stream (for example, to \f3stderr\fR), or text terminal\&.
.TP
-strict
.br
Enables strict mode, which enforces stronger adherence to the standard (ECMAScript Edition 5\&.1), making it easier to detect common coding errors\&. Enables strict mode, which enforces stronger adherence to the standard (ECMAScript Edition 5\&.1), making it easier to detect common coding errors\&.
.TP .RE
-t=\fIzone\fR , -timezone=\fIzone\fR .PP
.br \-t=\fIzone\fR
Sets the specified time zone for script execution\&. It overrides the time zone set in the OS and used by the \f3Date\fR object\&. .br
.TP \-timezone=\fIzone\fR
-tcs=\fIparameter\fR , --trace-callsites=\fIparameter\fR .RS 4
.br Sets the specified time zone for script execution\&. It overrides the time zone set in the OS and used by the
Enables callsite trace mode\&. Possible parameters are the following: \fBDate\fR
.RS object\&.
.TP .RE
miss .PP
Trace callsite misses\&. \-v
.TP .br
enterexit \-version
Trace callsite enter/exit\&. .RS 4
.TP
objects
Print object properties\&.
.RE
.TP
--verify-code
.br
Verifies bytecode before running\&.
.TP
-v, -version
.br
Prints the Nashorn version string\&. Prints the Nashorn version string\&.
.TP .RE
-xhelp .SH "EXAMPLES"
.br .PP
Prints extended help for command-line options\&. \fBExample 1 \fRRunning a Script with Nashorn
.SH EXAMPLES .RS 4
\f3Example 1 Running a Script with Nashorn\fR .sp
.sp .if n \{\
.nf .RS 4
\f3jjs script\&.js\fP .\}
.fi .nf
.nf \fBjjs script\&.js\fR
\f3\fP
.fi .fi
.sp .if n \{\
\f3Example 2 Running Nashorn in Interactive Mode\fR .RE
.sp .\}
.nf .RE
\f3>> \fIjjs\fR\fP .PP
.fi \fBExample 2 \fRRunning Nashorn in Interactive Mode
.nf .RS 4
\f3jjs> \fIprintln("Hello, World!")\fR\fP .sp
.fi .if n \{\
.nf .RS 4
\f3Hello, World!\fP .\}
.fi .nf
.nf \fB>> \fR\fB\fBjjs\fR\fR
\f3jjs> \fIquit()\fR\fP \fBjjs> \fR\fB\fBprintln("Hello, World!")\fR\fR
.fi \fBHello, World!\fR
.nf \fBjjs> \fR\fB\fBquit()\fR\fR
\f3>>\fP \fB>>\fR
.fi
.nf .fi
\f3\fP .if n \{\
.fi .RE
.sp .\}
\f3Example 3 Passing Arguments to Nashorn\fR .RE
.sp .PP
.nf \fBExample 3 \fRPassing Arguments to Nashorn
\f3>> \fIjjs \-\- a b c\fR\fP .RS 4
.fi .sp
.nf .if n \{\
\f3jjs> \fIarguments\&.join(", ")\fR\fP .RS 4
.fi .\}
.nf .nf
\f3a, b, c\fP \fB>> \fR\fB\fBjjs \-\- a b c\fR\fR
.fi \fBjjs> \fR\fB\fBarguments\&.join(", ")\fR\fR
.nf \fBa, b, c\fR
\f3jjs>\fP \fBjjs>\fR
.fi
.nf .fi
\f3\fP .if n \{\
.fi .RE
.sp .\}
.SH SEE\ ALSO .RE
\f3jrunscript\fR .SH "SEE ALSO"
.RE .PP
.br \fBjrunscript\fR
'pl 8.5i .br
'bp 'pl 8.5i
'bp
此差异已折叠。
此差异已折叠。
'\" t '\" t
.\" Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
.\" .\"
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
.\" .\"
.\" This code is free software; you can redistribute it and/or modify it .\" This code is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License version 2 only, as .\" under the terms of the GNU General Public License version 2 only, as
.\" published by the Free Software Foundation. .\" published by the Free Software Foundation.
.\" .\"
.\" This code is distributed in the hope that it will be useful, but WITHOUT .\" This code is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
.\" version 2 for more details (a copy is included in the LICENSE file that .\" version 2 for more details (a copy is included in the LICENSE file that
.\" accompanied this code). .\" accompanied this code).
.\" .\"
.\" You should have received a copy of the GNU General Public License version .\" You should have received a copy of the GNU General Public License version
.\" 2 along with this work; if not, write to the Free Software Foundation, .\" 2 along with this work; if not, write to the Free Software Foundation,
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
.\" .\"
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
.\" or visit www.oracle.com if you need additional information or have any .\" or visit www.oracle.com if you need additional information or have any
.\" questions. .\" questions.
.\" .\"
.\" Arch: generic .\" Title: jcmd
.\" Software: JDK 8 .\" Language: English
.\" Date: 21 November 2013 .\" Date: 03 March 2015
.\" SectDesc: Troubleshooting Tools .\" SectDesc: Troubleshooting Tools
.\" Title: jcmd.1 .\" Software: JDK 8
.\" Arch: generic
.\" Part Number: E38207-04
.\" Doc ID: JSSON
.\" .\"
.if n .pl 99999 .if n .pl 99999
.TH jcmd 1 "21 November 2013" "JDK 8" "Troubleshooting Tools" .TH "jcmd" "1" "03 March 2015" "JDK 8" "Troubleshooting Tools"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673 .\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq .ie \n(.g .ds Aq \(aq
.el .ds Aq ' .el .ds Aq '
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * set default formatting .\" * set default formatting
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" disable hyphenation .\" disable hyphenation
.nh .nh
.\" disable justification (adjust text to left margin only) .\" disable justification (adjust text to left margin only)
.ad l .ad l
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME"
.SH NAME
jcmd \- Sends diagnostic command requests to a running Java Virtual Machine (JVM)\&. jcmd \- Sends diagnostic command requests to a running Java Virtual Machine (JVM)\&.
.SH SYNOPSIS .SH "SYNOPSIS"
.sp .sp
.nf .if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR [\fB\-l\fR|\fB\-h\fR|\fB\-help\fR] \fBjcmd\fR [\fB\-l\fR|\fB\-h\fR|\fB\-help\fR]
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fBPerfCounter\&.print\fR \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fBPerfCounter\&.print\fR
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fB\-f\fR \fIfilename\fR \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fB\-f\fR \fIfilename\fR
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fIcommand\fR[ \fIarguments\fR] \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fIcommand\fR[ \fIarguments\fR]
.fi .fi
.sp .if n \{\
.SH DESCRIPTION .RE
The \f3jcmd\fR utility is used to send diagnostic command requests to the JVM\&. It must be used on the same machine on which the JVM is running, and have the same effective user and group identifiers that were used to launch the JVM\&. .\}
.SH "DESCRIPTION"
.PP
The
\fBjcmd\fR
utility is used to send diagnostic command requests to the JVM\&. It must be used on the same machine on which the JVM is running, and have the same effective user and group identifiers that were used to launch the JVM\&.
.if n \{\
.sp
.\}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fBNote\fR
.ps -1
.br
.TS
allbox tab(:);
l.
T{
.PP
To invoke diagnostic commands from a remote machine or with different identifiers, you can use the
\fBcom\&.sun\&.management\&.DiagnosticCommandMBean\fR
interface\&. For more information about the
\fBDiagnosticCommandMBean\fR
interface, see the API documentation at http://docs\&.oracle\&.com/javase/8/docs/jre/api/management/extension/com/sun/management/DiagnosticCommandMBean\&.html
T}
.TE
.sp 1
.sp .5v
.RE
.PP .PP
\fINote:\fR To invoke diagnostic commands from a remote machine or with different identiers, you can use the \f3com\&.sun\&.management\&.DiagnosticCommandMBean\fR interface\&. For more information about the \f3DiagnosticCommandMBean\fR interface, see the API documentation at http://download\&.java\&.net/jdk8/docs/jre/api/management/extension/com/sun/management/DiagnosticCommandMBean\&.html If you run
\fBjcmd\fR
without arguments or with the
\fB\-l\fR
option, it prints the list of running Java process identifiers with the main class and command\-line arguments that were used to launch the process\&. Running
\fBjcmd\fR
with the
\fB\-h\fR
or
\fB\-help\fR
option prints the tool\(cqs help message\&.
.PP .PP
If you run \f3jcmd\fR without arguments or with the \f3-l\fR option, it prints the list of running Java process identifiers with the main class and command-line arguments that were used to launch the process\&. Running \f3jcmd\fR with the \f3-h\fR or \f3-help\fR option prints the tool\(cqs help message\&. If you specify the processes identifier (\fIpid\fR) or the main class (\fImain\-class\fR) as the first argument,
\fBjcmd\fR
sends the diagnostic command request to the Java process with the specified identifier or to all Java processes with the specified name of the main class\&. You can also send the diagnostic command request to all available Java processes by specifying
\fB0\fR
as the process identifier\&. Use one of the following as the diagnostic command request:
.PP .PP
If you specify the processes identifier (\fIpid\fR) or the main class (\fImain-class\fR) as the first argument, \f3jcmd\fR sends the diagnostic command request to the Java process with the specified identifier or to all Java processes with the specified name of the main class\&. You can also send the diagnostic command request to all available Java processes by specifying \f30\fR as the process identifier\&. Use one of the following as the diagnostic command request:
.TP
Perfcounter\&.print Perfcounter\&.print
.RS 4
Prints the performance counters available for the specified Java process\&. The list of performance counters might vary with the Java process\&. Prints the performance counters available for the specified Java process\&. The list of performance counters might vary with the Java process\&.
.TP .RE
-f \fIfilename\fR .PP
.br \-f \fIfilename\fR
The name of the file from which to read diagnostic commands and send them to the specified Java process\&. Used only with the \f3-f\fR option\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\f3#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the \f3stop\fR keyword is read\&. .RS 4
.TP The name of the file from which to read diagnostic commands and send them to the specified Java process\&. Used only with the
\fB\-f\fR
option\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\fB#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the
\fBstop\fR
keyword is read\&.
.RE
.PP
\fIcommand\fR [\fIarguments\fR] \fIcommand\fR [\fIarguments\fR]
The command to be sent to the specified Java process\&. The list of available diagnostic commands for a given process can be obtained by sending the \f3help\fR command to this process\&. Each diagnostic command has its own set of arguments\&. To see the description, syntax, and a list of available arguments for a command, use the name of the command as the argument for the \f3help\fR command\&. .RS 4
The command to be sent to the specified Java process\&. The list of available diagnostic commands for a given process can be obtained by sending the
\fINote:\fR If any arguments contain spaces, you must surround them with single or double quotation marks (\f3\&'\fR or \f3"\fR)\&. In addition, you must escape single or double quotation marks with a backslash (\f3\e\fR) to prevent the operating system shell from processing quotation marks\&. Alternatively, you can surround these arguments with single quotation marks and then with double quotation marks (or with double quotation marks and then with single quotation marks)\&. \fBhelp\fR
.SH OPTIONS command to this process\&. Each diagnostic command has its own set of arguments\&. To see the description, syntax, and a list of available arguments for a command, use the name of the command as the argument for the
\fBhelp\fR
command\&.
.sp
\fBNote:\fR
If any arguments contain spaces, you must surround them with single or double quotation marks (\fB\*(Aq\fR
or
\fB"\fR)\&. In addition, you must escape single or double quotation marks with a backslash (\fB\e\fR) to prevent the operating system shell from processing quotation marks\&. Alternatively, you can surround these arguments with single quotation marks and then with double quotation marks (or with double quotation marks and then with single quotation marks)\&.
.RE
.SH "OPTIONS"
.PP
Options are mutually exclusive\&. Options are mutually exclusive\&.
.TP .PP
-f \fIfilename\fR \-f \fIfilename\fR
.br .RS 4
Reads commands from the specified file\&. This option can be used only if you specify the process identifier or the main class as the first argument\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\f3#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the \f3stop\fR keyword is read\&. Reads commands from the specified file\&. This option can be used only if you specify the process identifier or the main class as the first argument\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\fB#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the
.TP \fBstop\fR
-h, -help keyword is read\&.
.RE
.PP
\-h
.br .br
\-help
.RS 4
Prints a help message\&. Prints a help message\&.
.TP .RE
-l .PP
.br \-l
Prints the list of running Java processes identifiers with the main class and command-line arguments\&. .RS 4
.SH SEE\ ALSO Prints the list of running Java processes identifiers with the main class and command\-line arguments\&.
.TP 0.2i .RE
\(bu .SH "SEE ALSO"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
jps(1) jps(1)
.RE .RE
.br .br
'pl 8.5i 'pl 8.5i
'bp 'bp
'\" t '\" t
.\" Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
.\" .\"
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
.\" .\"
.\" This code is free software; you can redistribute it and/or modify it .\" This code is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License version 2 only, as .\" under the terms of the GNU General Public License version 2 only, as
.\" published by the Free Software Foundation. .\" published by the Free Software Foundation.
.\" .\"
.\" This code is distributed in the hope that it will be useful, but WITHOUT .\" This code is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
.\" version 2 for more details (a copy is included in the LICENSE file that .\" version 2 for more details (a copy is included in the LICENSE file that
.\" accompanied this code). .\" accompanied this code).
.\" .\"
.\" You should have received a copy of the GNU General Public License version .\" You should have received a copy of the GNU General Public License version
.\" 2 along with this work; if not, write to the Free Software Foundation, .\" 2 along with this work; if not, write to the Free Software Foundation,
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
.\" .\"
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
.\" or visit www.oracle.com if you need additional information or have any .\" or visit www.oracle.com if you need additional information or have any
.\" questions. .\" questions.
.\" .\"
.\" Arch: generic .\" Title: jjs
.\" Software: JDK 8 .\" Language: English
.\" Date: 03 March 2015 .\" Date: 03 March 2015
.\" SectDesc: Basic Tools .\" SectDesc: Basic Tools
.\" Title: jjs.1 .\" Software: JDK 8
.\" Arch: generic
.\" Part Number: E38207-04
.\" Doc ID: JSSON
.\" .\"
.if n .pl 99999 .if n .pl 99999
.TH jjs 1 "03 March 2015" "JDK 8" "Basic Tools" .TH "jjs" "1" "03 March 2015" "JDK 8" "Basic Tools"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673 .\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq .ie \n(.g .ds Aq \(aq
.el .ds Aq ' .el .ds Aq '
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * set default formatting .\" * set default formatting
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" disable hyphenation .\" disable hyphenation
.nh .nh
.\" disable justification (adjust text to left margin only) .\" disable justification (adjust text to left margin only)
.ad l .ad l
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME"
.SH NAME
jjs \- Invokes the Nashorn engine\&. jjs \- Invokes the Nashorn engine\&.
.SH SYNOPSIS .SH "SYNOPSIS"
.sp .sp
.nf .if n \{\
\f3\fBjjs\fR [\fIoptions\fR] [\fIscript\-files\fR] [\-\- \fIarguments\fR]\fP .RS 4
.fi .\}
.sp .nf
.TP \fB\fBjjs\fR\fR\fB [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIscript\-files\fR\fR\fB] [\-\- \fR\fB\fIarguments\fR\fR\fB]\fR
.fi
.if n \{\
.RE
.\}
.PP
\fIoptions\fR \fIoptions\fR
One or more options of the \f3jjs\fR command, separated by spaces\&. For more information, see Options\&. .RS 4
.TP One or more options of the
\fIscript-files\fR \fBjjs\fR
command, separated by spaces\&. For more information, see Options\&.
.RE
.PP
\fIscript\-files\fR
.RS 4
One or more script files which you want to interpret using Nashorn, separated by spaces\&. If no files are specified, an interactive shell is started\&. One or more script files which you want to interpret using Nashorn, separated by spaces\&. If no files are specified, an interactive shell is started\&.
.TP .RE
.PP
\fIarguments\fR \fIarguments\fR
All values after the double hyphen marker (\f3--\fR) are passed through to the script or the interactive shell as arguments\&. These values can be accessed by using the \f3arguments\fR property (see )\&. .RS 4
.SH DESCRIPTION All values after the double hyphen marker (\fB\-\-\fR) are passed through to the script or the interactive shell as arguments\&. These values can be accessed by using the
The \f3jjs\fR command-line tool is used to invoke the Nashorn engine\&. You can use it to interpret one or several script files, or to run an interactive shell\&. \fBarguments\fR
.SH OPTIONS property (see Example 3)\&.
The options of the \f3jjs\fR command control the conditions under which scripts are interpreted by Nashorn\&. .RE
.TP .SH "DESCRIPTION"
-ccs=\fIsize\fR , --class-cache-size=\fIsize\fR .PP
.br The
Sets the class cache size (in bytes)\&. Append the letter \f3k\fR or \f3K\fR to indicate kilobytes (KB), \f3m\fR or \f3M\fR to indicate megabytes (MB), \f3g\fR or \f3G\fR to indicate gigabytes (GB)\&. By default, the class cache size is set to 50 bytes\&. The following example shows how to set it to 1024 bytes (1 KB): \fBjjs\fR
.sp command\-line tool is used to invoke the Nashorn engine\&. You can use it to interpret one or several script files, or to run an interactive shell\&.
.nf .SH "OPTIONS"
\f3\-css=100\fP .PP
.fi The options of the
.nf \fBjjs\fR
\f3\-css=1k\fP command control the conditions under which scripts are interpreted by Nashorn\&.
.fi .PP
.nf \-cp \fIpath\fR
\f3\fP .br
.fi \-classpath \fIpath\fR
.sp .RS 4
.TP
-co, --compile-only
.br
Compiles the script without running it\&.
.TP
-cp \fIpath\fR , -classpath \fIpath\fR
.br
Specifies the path to the supporting class files To set multiple paths, the option can be repeated, or you can separate each path with a colon (:)\&. Specifies the path to the supporting class files To set multiple paths, the option can be repeated, or you can separate each path with a colon (:)\&.
.TP .RE
-D\fIname\fR=\fIvalue\fR .PP
.br \-D\fIname\fR=\fIvalue\fR
Sets a system property to be passed to the script by assigning a value to a property name\&. The following example shows how to invoke Nashorn in interactive mode and assign \f3myValue\fR to the property named \f3myKey\fR: .RS 4
.sp Sets a system property to be passed to the script by assigning a value to a property name\&. The following example shows how to invoke Nashorn in interactive mode and assign
.nf \fBmyValue\fR
\f3>> \fIjjs \-DmyKey=myValue\fR\fP to the property named
.fi \fBmyKey\fR:
.nf .sp
\f3jjs> \fIjava\&.lang\&.System\&.getProperty("myKey")\fR\fP .if n \{\
.fi .RS 4
.nf .\}
\f3myValue\fP .nf
.fi \fB>> \fR\fB\fBjjs \-DmyKey=myValue\fR\fR
.nf \fBjjs> \fR\fB\fBjava\&.lang\&.System\&.getProperty("myKey")\fR\fR
\f3jjs>\fP \fBmyValue\fR
.fi \fBjjs>\fR
.nf
\f3\fP .fi
.fi .if n \{\
.sp .RE
.\}
This option can be repeated to set multiple properties\&. This option can be repeated to set multiple properties\&.
.TP .RE
-d=\fIpath\fR , --dump-debug-dir=\fIpath\fR .PP
.br \-doe
Specifies the path to the directory where class files are dumped\&.
.TP
--debug-lines
.br
Generates a line number table in the class file\&. By default, this option is enabled\&. To disable it, specify \f3--debug-lines=false\fR\&.
.TP
--debug-locals
.br
Generates a local variable table in the class file\&.
.TP
-doe, --dump-on-error
.br .br
\-\-dump\-on\-error
.RS 4
Provides a full stack trace when an error occurs\&. By default, only a brief error message is printed\&. Provides a full stack trace when an error occurs\&. By default, only a brief error message is printed\&.
.TP .RE
--early-lvalue-error .PP
.br \-fv
Reports invalid lvalue expressions as early errors (that is, when the code is parsed)\&. By default, this option is enabled\&. To disable it, specify \f3--early-lvalue-error=false\fR\&. When disabled, invalid lvalue expressions will not be reported until the code is executed\&.
.TP
--empty-statements
.br
Preserves empty statements in the Java abstract syntax tree\&.
.TP
-fv, --fullversion
.br .br
\-\-fullversion
.RS 4
Prints the full Nashorn version string\&. Prints the full Nashorn version string\&.
.TP .RE
--function-statement-error .PP
.br \-fx
Prints an error message when a function declaration is used as a statement\&. .RS 4
.TP
--function-statement-warning
.br
Prints a warning message when a function declaration is used as a statement\&.
.TP
-fx
.br
Launches the script as a JavaFX application\&. Launches the script as a JavaFX application\&.
.TP .RE
-h, -help .PP
\-h
.br .br
\-help
.RS 4
Prints the list of options and their descriptions\&. Prints the list of options and their descriptions\&.
.TP .RE
-J\fIoption\fR .PP
.br \-\-language=[es5]
Passes the specified \f3java\fR launcher option to the JVM\&. The following example shows how to invoke Nashorn in interactive mode and set the maximum memory used by the JVM to 4 GB: .RS 4
.sp
.nf
\f3>> \fIjjs \-J\-Xmx4g\fR\fP
.fi
.nf
\f3jjs> \fIjava\&.lang\&.Runtime\&.getRuntime()\&.maxMemory()\fR\fP
.fi
.nf
\f33817799680\fP
.fi
.nf
\f3jjs>\fP
.fi
.nf
\f3\fP
.fi
.sp
This option can be repeated to pass multiple \f3java\fR command options\&.
.TP
--language=[es5]
.br
Specifies the ECMAScript language version\&. The default version is ES5\&. Specifies the ECMAScript language version\&. The default version is ES5\&.
.TP .RE
--lazy-compilation .PP
.br \-ot
Enables lazy code generation strategies (that is, the entire script is not compiled at once)\&. This option is experimental\&.
.TP
--loader-per-compile
.br
Creates a new class loader per compile\&. By default, this option is enabled\&. To disable it, specify \f3--loader-per-compile=false\fR\&.
.TP
--log=\fIsubsystem\fR:\fIlevel\fR
.br
Performs logging at a given level for the specified subsystems\&. You can specify logging levels for multiple subsystems separating them with commas\&. For example:
.sp
.nf
\f3\-\-log=fields:finest,codegen:info\fP
.fi
.sp
.TP
--optimistic-types=[true|false]
.br .br
\-\-optimistic\-types=[true|false]
.RS 4
Enables or disables optimistic type assumptions with deoptimizing recompilation\&. Running with optimistic types will yield higher final speed, but may increase warmup time\&. Enables or disables optimistic type assumptions with deoptimizing recompilation\&. Running with optimistic types will yield higher final speed, but may increase warmup time\&.
.TP .RE
--package=\fIname\fR .PP
.br \-scripting
Specifies the package to which generated class files are added\&. .RS 4
.TP
--parse-only
.br
Parses the code without compiling\&.
.TP
--print-ast
.br
Prints the abstract syntax tree\&.
.TP
--print-code
.br
Prints bytecode\&.
.TP
--print-lower-ast
.br
Prints the lowered abstract syntax tree\&.
.TP
--print-lower-parse
.br
Prints the lowered parse tree\&.
.TP
--print-no-newline
.br
Forces other \f3--print*\fR options to print the output on one line\&.
.TP
--print-parse
.br
Prints the parse tree\&.
.TP
--print-symbols
.br
Prints the symbol table\&.
.TP
-pcs, --profile-callsites
.br
Dumps callsite profile data\&.
.TP
-scripting
.br
Enables shell scripting features\&. Enables shell scripting features\&.
.TP .RE
--stderr=\fIfilename\fR|\fIstream\fR|\fItty\fR .PP
.br \-strict
Redirects the standard error stream to the specified file, stream (for example, to \f3stdout\fR), or text terminal\&. .RS 4
.TP
--stdout=\fIfilename\fR|\fIstream\fR|\fItty\fR
.br
Redirects the standard output stream to the specified file, stream (for example, to \f3stderr\fR), or text terminal\&.
.TP
-strict
.br
Enables strict mode, which enforces stronger adherence to the standard (ECMAScript Edition 5\&.1), making it easier to detect common coding errors\&. Enables strict mode, which enforces stronger adherence to the standard (ECMAScript Edition 5\&.1), making it easier to detect common coding errors\&.
.TP .RE
-t=\fIzone\fR , -timezone=\fIzone\fR .PP
.br \-t=\fIzone\fR
Sets the specified time zone for script execution\&. It overrides the time zone set in the OS and used by the \f3Date\fR object\&. .br
.TP \-timezone=\fIzone\fR
-tcs=\fIparameter\fR , --trace-callsites=\fIparameter\fR .RS 4
.br Sets the specified time zone for script execution\&. It overrides the time zone set in the OS and used by the
Enables callsite trace mode\&. Possible parameters are the following: \fBDate\fR
.RS object\&.
.TP .RE
miss .PP
Trace callsite misses\&. \-v
.TP .br
enterexit \-version
Trace callsite enter/exit\&. .RS 4
.TP
objects
Print object properties\&.
.RE
.TP
--verify-code
.br
Verifies bytecode before running\&.
.TP
-v, -version
.br
Prints the Nashorn version string\&. Prints the Nashorn version string\&.
.TP .RE
-xhelp .SH "EXAMPLES"
.br .PP
Prints extended help for command-line options\&. \fBExample 1 \fRRunning a Script with Nashorn
.SH EXAMPLES .RS 4
\f3Example 1 Running a Script with Nashorn\fR .sp
.sp .if n \{\
.nf .RS 4
\f3jjs script\&.js\fP .\}
.fi .nf
.nf \fBjjs script\&.js\fR
\f3\fP
.fi .fi
.sp .if n \{\
\f3Example 2 Running Nashorn in Interactive Mode\fR .RE
.sp .\}
.nf .RE
\f3>> \fIjjs\fR\fP .PP
.fi \fBExample 2 \fRRunning Nashorn in Interactive Mode
.nf .RS 4
\f3jjs> \fIprintln("Hello, World!")\fR\fP .sp
.fi .if n \{\
.nf .RS 4
\f3Hello, World!\fP .\}
.fi .nf
.nf \fB>> \fR\fB\fBjjs\fR\fR
\f3jjs> \fIquit()\fR\fP \fBjjs> \fR\fB\fBprintln("Hello, World!")\fR\fR
.fi \fBHello, World!\fR
.nf \fBjjs> \fR\fB\fBquit()\fR\fR
\f3>>\fP \fB>>\fR
.fi
.nf .fi
\f3\fP .if n \{\
.fi .RE
.sp .\}
\f3Example 3 Passing Arguments to Nashorn\fR .RE
.sp .PP
.nf \fBExample 3 \fRPassing Arguments to Nashorn
\f3>> \fIjjs \-\- a b c\fR\fP .RS 4
.fi .sp
.nf .if n \{\
\f3jjs> \fIarguments\&.join(", ")\fR\fP .RS 4
.fi .\}
.nf .nf
\f3a, b, c\fP \fB>> \fR\fB\fBjjs \-\- a b c\fR\fR
.fi \fBjjs> \fR\fB\fBarguments\&.join(", ")\fR\fR
.nf \fBa, b, c\fR
\f3jjs>\fP \fBjjs>\fR
.fi
.nf .fi
\f3\fP .if n \{\
.fi .RE
.sp .\}
.SH SEE\ ALSO .RE
\f3jrunscript\fR .SH "SEE ALSO"
.RE .PP
.br \fBjrunscript\fR
'pl 8.5i .br
'bp 'pl 8.5i
'bp
此差异已折叠。
此差异已折叠。
'\" t '\" t
.\" Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
.\" .\"
.\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
.\" .\"
.\" This code is free software; you can redistribute it and/or modify it .\" This code is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License version 2 only, as .\" under the terms of the GNU General Public License version 2 only, as
.\" published by the Free Software Foundation. .\" published by the Free Software Foundation.
.\" .\"
.\" This code is distributed in the hope that it will be useful, but WITHOUT .\" This code is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
.\" version 2 for more details (a copy is included in the LICENSE file that .\" version 2 for more details (a copy is included in the LICENSE file that
.\" accompanied this code). .\" accompanied this code).
.\" .\"
.\" You should have received a copy of the GNU General Public License version .\" You should have received a copy of the GNU General Public License version
.\" 2 along with this work; if not, write to the Free Software Foundation, .\" 2 along with this work; if not, write to the Free Software Foundation,
.\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
.\" .\"
.\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
.\" or visit www.oracle.com if you need additional information or have any .\" or visit www.oracle.com if you need additional information or have any
.\" questions. .\" questions.
.\" .\"
.\" Arch: generic .\" Title: jcmd
.\" Software: JDK 8 .\" Language: English
.\" Date: 21 November 2013 .\" Date: 03 March 2015
.\" SectDesc: Troubleshooting Tools .\" SectDesc: Troubleshooting Tools
.\" Title: jcmd.1 .\" Software: JDK 8
.\" Arch: generic
.\" Part Number: E38207-04
.\" Doc ID: JSSON
.\" .\"
.if n .pl 99999 .if n .pl 99999
.TH jcmd 1 "21 November 2013" "JDK 8" "Troubleshooting Tools" .TH "jcmd" "1" "03 March 2015" "JDK 8" "Troubleshooting Tools"
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * Define some portability stuff .\" * Define some portability stuff
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673 .\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq .ie \n(.g .ds Aq \(aq
.el .ds Aq ' .el .ds Aq '
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * set default formatting .\" * set default formatting
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" disable hyphenation .\" disable hyphenation
.nh .nh
.\" disable justification (adjust text to left margin only) .\" disable justification (adjust text to left margin only)
.ad l .ad l
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE * .\" * MAIN CONTENT STARTS HERE *
.\" ----------------------------------------------------------------- .\" -----------------------------------------------------------------
.SH "NAME"
.SH NAME
jcmd \- Sends diagnostic command requests to a running Java Virtual Machine (JVM)\&. jcmd \- Sends diagnostic command requests to a running Java Virtual Machine (JVM)\&.
.SH SYNOPSIS .SH "SYNOPSIS"
.sp .sp
.nf .if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR [\fB\-l\fR|\fB\-h\fR|\fB\-help\fR] \fBjcmd\fR [\fB\-l\fR|\fB\-h\fR|\fB\-help\fR]
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fBPerfCounter\&.print\fR \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fBPerfCounter\&.print\fR
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fB\-f\fR \fIfilename\fR \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fB\-f\fR \fIfilename\fR
.fi .fi
.nf .if n \{\
.RE
.\}
.sp
.if n \{\
.RS 4
.\}
.nf
\fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fIcommand\fR[ \fIarguments\fR] \fBjcmd\fR \fIpid\fR|\fImain\-class\fR \fIcommand\fR[ \fIarguments\fR]
.fi .fi
.sp .if n \{\
.SH DESCRIPTION .RE
The \f3jcmd\fR utility is used to send diagnostic command requests to the JVM\&. It must be used on the same machine on which the JVM is running, and have the same effective user and group identifiers that were used to launch the JVM\&. .\}
.SH "DESCRIPTION"
.PP
The
\fBjcmd\fR
utility is used to send diagnostic command requests to the JVM\&. It must be used on the same machine on which the JVM is running, and have the same effective user and group identifiers that were used to launch the JVM\&.
.if n \{\
.sp
.\}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fBNote\fR
.ps -1
.br
.TS
allbox tab(:);
l.
T{
.PP
To invoke diagnostic commands from a remote machine or with different identifiers, you can use the
\fBcom\&.sun\&.management\&.DiagnosticCommandMBean\fR
interface\&. For more information about the
\fBDiagnosticCommandMBean\fR
interface, see the API documentation at http://docs\&.oracle\&.com/javase/8/docs/jre/api/management/extension/com/sun/management/DiagnosticCommandMBean\&.html
T}
.TE
.sp 1
.sp .5v
.RE
.PP .PP
\fINote:\fR To invoke diagnostic commands from a remote machine or with different identiers, you can use the \f3com\&.sun\&.management\&.DiagnosticCommandMBean\fR interface\&. For more information about the \f3DiagnosticCommandMBean\fR interface, see the API documentation at http://download\&.java\&.net/jdk8/docs/jre/api/management/extension/com/sun/management/DiagnosticCommandMBean\&.html If you run
\fBjcmd\fR
without arguments or with the
\fB\-l\fR
option, it prints the list of running Java process identifiers with the main class and command\-line arguments that were used to launch the process\&. Running
\fBjcmd\fR
with the
\fB\-h\fR
or
\fB\-help\fR
option prints the tool\(cqs help message\&.
.PP .PP
If you run \f3jcmd\fR without arguments or with the \f3-l\fR option, it prints the list of running Java process identifiers with the main class and command-line arguments that were used to launch the process\&. Running \f3jcmd\fR with the \f3-h\fR or \f3-help\fR option prints the tool\(cqs help message\&. If you specify the processes identifier (\fIpid\fR) or the main class (\fImain\-class\fR) as the first argument,
\fBjcmd\fR
sends the diagnostic command request to the Java process with the specified identifier or to all Java processes with the specified name of the main class\&. You can also send the diagnostic command request to all available Java processes by specifying
\fB0\fR
as the process identifier\&. Use one of the following as the diagnostic command request:
.PP .PP
If you specify the processes identifier (\fIpid\fR) or the main class (\fImain-class\fR) as the first argument, \f3jcmd\fR sends the diagnostic command request to the Java process with the specified identifier or to all Java processes with the specified name of the main class\&. You can also send the diagnostic command request to all available Java processes by specifying \f30\fR as the process identifier\&. Use one of the following as the diagnostic command request:
.TP
Perfcounter\&.print Perfcounter\&.print
.RS 4
Prints the performance counters available for the specified Java process\&. The list of performance counters might vary with the Java process\&. Prints the performance counters available for the specified Java process\&. The list of performance counters might vary with the Java process\&.
.TP .RE
-f \fIfilename\fR .PP
.br \-f \fIfilename\fR
The name of the file from which to read diagnostic commands and send them to the specified Java process\&. Used only with the \f3-f\fR option\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\f3#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the \f3stop\fR keyword is read\&. .RS 4
.TP The name of the file from which to read diagnostic commands and send them to the specified Java process\&. Used only with the
\fB\-f\fR
option\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\fB#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the
\fBstop\fR
keyword is read\&.
.RE
.PP
\fIcommand\fR [\fIarguments\fR] \fIcommand\fR [\fIarguments\fR]
The command to be sent to the specified Java process\&. The list of available diagnostic commands for a given process can be obtained by sending the \f3help\fR command to this process\&. Each diagnostic command has its own set of arguments\&. To see the description, syntax, and a list of available arguments for a command, use the name of the command as the argument for the \f3help\fR command\&. .RS 4
The command to be sent to the specified Java process\&. The list of available diagnostic commands for a given process can be obtained by sending the
\fINote:\fR If any arguments contain spaces, you must surround them with single or double quotation marks (\f3\&'\fR or \f3"\fR)\&. In addition, you must escape single or double quotation marks with a backslash (\f3\e\fR) to prevent the operating system shell from processing quotation marks\&. Alternatively, you can surround these arguments with single quotation marks and then with double quotation marks (or with double quotation marks and then with single quotation marks)\&. \fBhelp\fR
.SH OPTIONS command to this process\&. Each diagnostic command has its own set of arguments\&. To see the description, syntax, and a list of available arguments for a command, use the name of the command as the argument for the
\fBhelp\fR
command\&.
.sp
\fBNote:\fR
If any arguments contain spaces, you must surround them with single or double quotation marks (\fB\*(Aq\fR
or
\fB"\fR)\&. In addition, you must escape single or double quotation marks with a backslash (\fB\e\fR) to prevent the operating system shell from processing quotation marks\&. Alternatively, you can surround these arguments with single quotation marks and then with double quotation marks (or with double quotation marks and then with single quotation marks)\&.
.RE
.SH "OPTIONS"
.PP
Options are mutually exclusive\&. Options are mutually exclusive\&.
.TP .PP
-f \fIfilename\fR \-f \fIfilename\fR
.br .RS 4
Reads commands from the specified file\&. This option can be used only if you specify the process identifier or the main class as the first argument\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\f3#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the \f3stop\fR keyword is read\&. Reads commands from the specified file\&. This option can be used only if you specify the process identifier or the main class as the first argument\&. Each command in the file must be written on a single line\&. Lines starting with a number sign (\fB#\fR) are ignored\&. Processing of the file ends when all lines have been read or when a line containing the
.TP \fBstop\fR
-h, -help keyword is read\&.
.RE
.PP
\-h
.br .br
\-help
.RS 4
Prints a help message\&. Prints a help message\&.
.TP .RE
-l .PP
.br \-l
Prints the list of running Java processes identifiers with the main class and command-line arguments\&. .RS 4
.SH SEE\ ALSO Prints the list of running Java processes identifiers with the main class and command\-line arguments\&.
.TP 0.2i .RE
\(bu .SH "SEE ALSO"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
jps(1) jps(1)
.RE .RE
.br .br
'pl 8.5i 'pl 8.5i
'bp 'bp
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册