< prev index next >

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

Print this page


   1 .\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.

   2 .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   3 .\"
   4 .\" This code is free software; you can redistribute it and/or modify it
   5 .\" under the terms of the GNU General Public License version 2 only, as
   6 .\" published by the Free Software Foundation.
   7 .\"
   8 .\" This code is distributed in the hope that it will be useful, but WITHOUT
   9 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  11 .\" version 2 for more details (a copy is included in the LICENSE file that
  12 .\" accompanied this code).
  13 .\"
  14 .\" You should have received a copy of the GNU General Public License version
  15 .\" 2 along with this work; if not, write to the Free Software Foundation,
  16 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17 .\"
  18 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  19 .\" or visit www.oracle.com if you need additional information or have any
  20 .\" questions.
  21 .\"
  22 .\" Automatically generated by Pandoc 2.3.1
  23 .\"
  24 .TH "JINFO" "1" "2018" "JDK 13" "JDK Commands"
  25 .hy
  26 .SH NAME
  27 .PP
  28 jinfo \- generate Java configuration information for a specified Java
  29 process
  30 .SH SYNOPSIS
  31 .PP
  32 \f[B]Note:\f[R] This command is experimental\ and unsupported.
  33 .PP
  34 \f[CB]jinfo\f[R] [\f[I]option\f[R]] \f[I]pid\f[R]
  35 .TP
  36 .B \f[I]option\f[R]
  37 This represents the \f[CB]jinfo\f[R] command\-line options.
  38 See \f[B]Options for the jinfo Command\f[R].
  39 .RS
  40 .RE
  41 .TP
  42 .B \f[I]pid\f[R]
  43 The process ID for which the configuration information is to be printed.
  44 The process must be a Java process.
  45 To get a list of Java processes running on a machine, use either the
  46 \f[CB]ps\f[R] command or, if the JVM processes are not running in a
  47 separate docker instance, the \f[B]jps\f[R] command.
  48 .RS
  49 .PP
  50 \f[B]Note:\f[R] JDK 10 has added support for using the Attach API when
  51 attaching to Java processes running in a separate docker process.
  52 However, the \f[CB]jps\f[R] command will not list the JVM processes that
  53 are running in a separate docker instance.
  54 If you are trying to connect a Linux host with a Virtual Machine that is
  55 in a docker container, you must use tools such as \f[CB]ps\f[R] to look up
  56 the PID of the JVM.
  57 .RE
  58 .SH DESCRIPTION
  59 .PP
  60 The \f[CB]jinfo\f[R] command prints Java configuration information for a
  61 specified Java process.
  62 The configuration information includes Java system properties and JVM
  63 command\-line flags.
  64 If the specified process is running on a 64\-bit JVM, then you might
  65 need to specify the \f[CB]\-J\-d64\f[R] option, for example:
  66 .RS
  67 .PP
  68 \f[CB]jinfo\ \-J\-d64\ \-sysprops\f[R] \f[I]pid\f[R]
  69 .RE
  70 .PP
  71 This command is unsupported and might not be available in future
  72 releases of the JDK.
  73 In Windows Systems where \f[CB]dbgeng.dll\f[R] is not present, the
  74 Debugging Tools for Windows must be installed to have these tools work.
  75 The \f[CB]PATH\f[R] environment variable should contain the location of
  76 the \f[CB]jvm.dll\f[R] that\[aq]s used by the target process or the
  77 location from which the core dump file was produced.
  78 .SH OPTIONS FOR THE JINFO COMMAND
  79 .PP
  80 \f[B]Note:\f[R]
  81 .PP
  82 If none of the following options are used, both the command\-line flags
  83 and the system property name\-value pairs are printed.
  84 .TP
  85 .B \f[CB]\-flag\f[R] \f[I]name\f[R]
  86 Prints the name and value of the specified command\-line flag.
  87 .RS
  88 .RE
  89 .TP
  90 .B \f[CB]\-flag\f[R] [\f[CB]+\f[R]|\f[CB]\-\f[R]]\f[I]name\f[R]
  91 Enables or disables the specified Boolean command\-line flag.
  92 .RS
  93 .RE
  94 .TP
  95 .B \f[CB]\-flag\f[R] \f[I]name\f[R]\f[CB]=\f[R]\f[I]value\f[R]
  96 Sets the specified command\-line flag to the specified value.
  97 .RS
  98 .RE
  99 .TP
 100 .B \f[CB]\-flags\f[R]
 101 Prints command\-line flags passed to the JVM.
 102 .RS
 103 .RE
 104 .TP
 105 .B \f[CB]\-sysprops\f[R]
 106 Prints Java system properties as name\-value pairs.
 107 .RS
 108 .RE
 109 .TP
 110 .B \f[CB]\-h\f[R] or \f[CB]\-help\f[R]
 111 Prints a help message.
 112 .RS
 113 .RE


















   1 '\" t
   2 .\" Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
   3 .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 .\"
   5 .\" This code is free software; you can redistribute it and/or modify it
   6 .\" under the terms of the GNU General Public License version 2 only, as
   7 .\" published by the Free Software Foundation.
   8 .\"
   9 .\" This code is distributed in the hope that it will be useful, but WITHOUT
  10 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 .\" version 2 for more details (a copy is included in the LICENSE file that
  13 .\" accompanied this code).
  14 .\"
  15 .\" You should have received a copy of the GNU General Public License version
  16 .\" 2 along with this work; if not, write to the Free Software Foundation,
  17 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 .\"
  19 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 .\" or visit www.oracle.com if you need additional information or have any
  21 .\" questions.
  22 .\"
  23 .\"     Arch: generic
  24 .\"     Software: JDK 8
  25 .\"     Date: 21 November 2013
  26 .\"     SectDesc: Troubleshooting Tools
  27 .\"     Title: jinfo.1
  28 .\"
  29 .if n .pl 99999
  30 .TH jinfo 1 "21 November 2013" "JDK 8" "Troubleshooting Tools"
  31 .\" -----------------------------------------------------------------
  32 .\" * Define some portability stuff
  33 .\" -----------------------------------------------------------------
  34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35 .\" http://bugs.debian.org/507673
  36 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  37 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38 .ie \n(.g .ds Aq \(aq
  39 .el       .ds Aq '
  40 .\" -----------------------------------------------------------------
  41 .\" * set default formatting
  42 .\" -----------------------------------------------------------------
  43 .\" disable hyphenation
  44 .nh
  45 .\" disable justification (adjust text to left margin only)
  46 .ad l
  47 .\" -----------------------------------------------------------------
  48 .\" * MAIN CONTENT STARTS HERE *
  49 .\" -----------------------------------------------------------------
  50 
  51 .SH NAME    
  52 jinfo \- Generates configuration information\&. This command is experimental and unsupported\&.
  53 .SH SYNOPSIS    
  54 .sp     
  55 .nf     
  56 
  57 \fBjinfo\fR [ \fIoption\fR ] \fIpid\fR
  58 .fi     
  59 .nf     
  60 
  61 \fBjinfo\fR [ \fIoption \fR] \fIexecutable core\fR
  62 .fi     
  63 .nf     
  64 
  65 \fBjinfo\fR [ \fIoption \fR] \fI[ servier\-id ] remote\-hostname\-or\-IP\fR
  66 .fi     
  67 .sp     
  68 .TP     
  69 \fIoption\fR
  70 The command-line options\&. See Options\&.
  71 .TP     
  72 \fIpid\fR
  73 The process ID for which the configuration information is to be printed\&. The process must be a Java process\&. To get a list of Java processes running on a machine, use the jps(1) command\&.
  74 .TP     
  75 \fIexecutable\fR
  76 The Java executable from which the core dump was produced\&.
  77 .TP     
  78 \fIcore\fR
  79 The core file for which the configuration information is to be printed\&.
  80 .TP     
  81 \fIremote-hostname-or-IP\fR
  82 The remote debug server \f3hostname\fR or \f3IP\fR address\&. See jsadebugd(1)\&.
  83 .TP     
  84 \fIserver-id\fR
  85 An optional unique ID to use when multiple debug servers are running on the same remote host\&.
  86 .SH DESCRIPTION    
  87 The \f3jinfo\fR command prints Java configuration information for a specified Java process or core file or a remote debug server\&. The configuration information includes Java system properties and Java Virtual Machine (JVM) command-line flags\&. If the specified process is running on a 64-bit JVM, then you might need to specify the \f3-J-d64\fR option, for example: \f3jinfo\fR\f3-J-d64 -sysprops pid\fR\&.
  88 .PP
  89 This utility is unsupported and might not be available in future releases of the JDK\&. In Windows Systems where \f3dbgeng\&.dll\fR is not present, Debugging Tools For Windows must be installed to have these tools working\&. The \f3PATH\fR environment variable should contain the location of the jvm\&.dll that is used by the target process or the location from which the crash dump file was produced\&. For example, \f3set PATH=%JDK_HOME%\ejre\ebin\eclient;%PATH%\fR \&.
  90 .SH OPTIONS    
  91 .TP     
  92 no-option
  93 Prints both command-line flags and system property name-value pairs\&.
  94 .TP
  95 -flag \fIname\fR
  96 .br
  97 Prints the name and value of the specified command-line flag\&.
  98 .TP
  99 -flag \fI[+|-]name\fR
 100 .br
 101 enables or disables the specified Boolean command-line flag\&.
 102 .TP
 103 -flag \fIname=value\fR
 104 .br
 105 Sets the specified command-line flag to the specified value\&.
 106 .TP
 107 -flags
 108 .br
 109 Prints command-line flags passed to the JVM\&.
 110 .TP
 111 -sysprops
 112 .br
 113 Prints Java system properties as name-value pairs\&.
 114 .TP
 115 -h
 116 .br
 117 Prints a help message\&.
 118 .TP
 119 -help
 120 .br
 121 Prints a help message\&.
 122 .SH SEE\ ALSO    
 123 .TP 0.2i    
 124 \(bu
 125 jps(1)
 126 .TP 0.2i    
 127 \(bu
 128 jsadebugd(1)
 129 .RE
 130 .br
 131 'pl 8.5i
 132 'bp
< prev index next >