1JINFO(1)                         JDK Commands                         JINFO(1)
2
3
4

NAME

6       jinfo  -  generate  Java configuration information for a specified Java
7       process
8

SYNOPSIS

10       Note: This command is experimental and unsupported.
11
12       jinfo [option] pid
13
14       option This represents the jinfo command-line options.  See Options for
15              the jinfo Command.
16
17       pid    The  process ID for which the configuration information is to be
18              printed.  The process must be a Java process.  To get a list  of
19              Java  processes  running on a machine, use either the ps command
20              or, if the JVM processes are not running in  a  separate  docker
21              instance, the jps command.
22
23              Note: JDK 10 has added support for using the Attach API when at‐
24              taching to Java processes running in a separate docker  process.
25              However,  the  jps  command will not list the JVM processes that
26              are running in a separate docker instance.  If you are trying to
27              connect  a Linux host with a Virtual Machine that is in a docker
28              container, you must use tools such as ps to look up the  PID  of
29              the JVM.
30

DESCRIPTION

32       The jinfo command prints Java configuration information for a specified
33       Java process.  The configuration information includes Java system prop‐
34       erties and JVM command-line flags.  If the specified process is running
35       on a 64-bit JVM, then you might need to specify the -J-d64 option,  for
36       example:
37
38              jinfo -J-d64 -sysprops pid
39
40       This  command  is  unsupported and might not be available in future re‐
41       leases of the JDK.  In Windows Systems where dbgeng.dll is not present,
42       the  Debugging  Tools for Windows must be installed to have these tools
43       work.  The PATH environment variable should contain the location of the
44       jvm.dll  that's  used  by the target process or the location from which
45       the core dump file was produced.
46

OPTIONS FOR THE JINFO COMMAND

48       Note:
49
50       If none of the following options are used, both the command-line  flags
51       and the system property name-value pairs are printed.
52
53       -flag name
54              Prints the name and value of the specified command-line flag.
55
56       -flag [+|-]name
57              Enables or disables the specified Boolean command-line flag.
58
59       -flag name=value
60              Sets the specified command-line flag to the specified value.
61
62       -flags Prints command-line flags passed to the JVM.
63
64       -sysprops
65              Prints Java system properties as name-value pairs.
66
67       -h or -help
68              Prints a help message.
69
70
71
72JDK 14                               2020                             JINFO(1)
Impressum