jinfo(1)
β¨ jinfo(1) β¨
okay so bestie, you're looking at jinfo from the Troubleshooting Tools lineup β the little icon that spills all the tea about how a JVM is configured π
πΈ NAME πΈ
jinfo β generates configuration information. that's the whole job. this command is experimental and unsupported tho, so likeβ¦ don't build your whole personality on it π
π¦ SYNOPSIS π¦
jinfo [ option ] pid
jinfo [ option ] executable core
jinfo [ option ] [ servier-id ] remote-hostname-or-IP
so real talk, here's what those pieces mean:
optionβ the command-line options. see Options below, i gotchu.pidβ the process ID of the process you want configuration info printed for. it must be a Java process, no cap. need a list of Java processes chillin' on the machine? go hit upjps(1)πexecutableβ the Java executable that the core dump was produced from.coreβ the core file you want the configuration information printed for.remote-hostname-or-IPβ the hostname or IP address of the remote debug server. peepjsadebugd(1)for that one.server-idβ an optional unique ID, used when multiple debug servers are running on the same remote host. (the original spells itservier-idup there in the synopsis, and honestly? iconic typo, we keep it, we don't fix it π)
π DESCRIPTION π
jinfo prints Java configuration information for a Java process, a core file, or a remote debug server that you point it at. what even is "configuration information"? it's the Java system properties plus the Java Virtual Machine (JVM) command-line flags β the receipts, basically π§Ύβ¨
here's the vibe check on 64-bit: if the process you're specifying is running on a 64-bit JVM, you might need to pass the -J-d64 option. like, for example:
jinfo-J-d64 -sysprops pid
(yes, that's exactly how it's written in the source, no space, and no i am not touching it β copy it exactly, bestie π)
β οΈ major disclaimer time: this utility is unsupported and might not be available in future releases of the JDK. so likeβ¦ enjoy it while it lasts π
on Windows systems where dbgeng.dll is not present, you have to install Debugging Tools For Windows to get these tools working. also, your PATH environment variable should contain the location of the jvm.dll that's used by the target process β or the location from which the crash dump file was produced. for example:
set PATH=%JDK_HOME%\jre\bin\client;%PATH%
like, actually set it, don't just look at it π«Ά
π OPTIONS π
no-optionβ prints both the command-line flags and the system property name-value pairs. the full combo platter, we love a two-for-one π-flag nameβ prints the name and the value of the command-line flag you named.-flag [+|-]nameβ enables or disables that specified Boolean command-line flag. plus for on, minus for off, ur choice β¨-flag name=valueβ sets the specified command-line flag to the specified value.-flagsβ prints the command-line flags that were passed to the JVM.-syspropsβ prints the Java system properties as name-value pairs.-hβ prints a help message. classic.-helpβ prints a help message too. same energy, longer name π
π SEE ALSO π
that's the whole page, bestie, you ate that π and for the sign-off: this lil masterpiece is from JDK 8, dated 21 November 2013 β vintage, honestly. periodt ππ¦
π¦ where this page comes from
- centos-stream 9: java-1.8.0-openjdk-devel-slowdebug 1:1.8.0.504.b01-2.1.el9 Β· ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib
- Copyright (c) 2004, 2013, 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