JINFO(1)
π JINFO(1) β the JDK Commands era, bestie
okay so before we even start, grab a snack π because we're talking about jinfo, and she's that girl for peeking at what a running Java process is actually thinking. Also heads up: she's from the JDK Commands family, so she rolls with the cool JDK kids π
β¨ NAME β¨
jinfo β literally generates Java configuration information for a Java process you point at. that's it, that's the vibe π«Ά
πΈ SYNOPSIS πΈ
β οΈ real talk first: this command is experimental and unsupported. not me warning you before the code block π
jinfo [option] pid
optionβ this is where thejinfocommand-line options go. peek at Options for thejinfoCommand below, iykyk πpidβ the process ID you want the configuration info printed for. and it must be a Java process, no cap. to get a list of Java processes running on a machine, use thepscommand, or β if the JVM processes aren't running in a separate docker instance β thejpscommand. easy π«
π¦ DESCRIPTION π¦
so what does jinfo actually do? she prints Java configuration information for a specified Java process. and that configuration info includes Java system properties and JVM command-line flags. iconic, honestly β¨
here's the lil catch, bestie: if the specified process is running on a 64-bit JVM, then you might need to specify the -J-d64 option. like this, exactly:
jinfo -J-d64 -sysprops pid
π¨ okay serious moment: this command is unsupported and might not be available in future releases of the JDK. don't get attached, fr fr π
and on Windows Systems where dbgeng.dll is not present, the Debugging Tools for Windows must be installed to have these tools work. also, the PATH environment variable should contain the location of the jvm.dll that's used by the target process β or the location from which the core dump file was produced. yes, that whole sentence matters, write it down π
π
OPTIONS FOR THE jinfo COMMAND π
π Note: if none of the following options are used, both the command-line flags and the system property name-value pairs are printed. so doing nothing still gives you everything, main character energy honestly π
-flag nameβ prints the name and value of the specified command-line flag. just a peek π-flag [+|-]nameβ enables or disables the specified Boolean command-line flag. toggle time π₯-flag name=valueβ sets the specified command-line flag to the specified value. you're in charge now π-flagsβ prints command-line flags passed to the JVM.-syspropsβ prints Java system properties as name-value pairs.-hor-helpβ prints a help message. always here for you π«Ά
π a lil sign-off π
this page came from JDK 21, dated 2023, and lives its life as JINFO(1). slay, go check your JVM's vibe, and remember: experimental means handle with care πβ¨
π¦ where this page comes from
- arch rolling: jdk21-openjdk 21.0.13.0.3.u1-1 Β· LicenseRef-Java
- Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms