JINFO(1)

πŸ“¦ version 22.0.2.0, in opensuse-leap 16.0

✨ JINFO(1) ✨

okay so bestie, let me tell you about jinfo β€” it's this iconic little tool that generates Java configuration information for a specified Java process. it's giving "let me spill the tea about what's going on inside your JVM" energy and honestly? we're obsessed πŸ’…


🌸 SYNOPSIS 🌸

Note: This command is experimental and unsupported. (yeah, it's a little rebel like that 😭)
jinfo [option] pid
  • option β€” This represents the jinfo command-line options. See Options for the jinfo Command below, bestie.
  • pid β€” The process ID for which the configuration information is to be printed. The process must be a Java process, no cap. To get a list of Java processes running on a machine, use either the ps command or, if the JVM processes are not running in a separate docker instance, the jps command. iykyk 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

The jinfo command prints Java configuration information for a specified Java process. The configuration information includes Java system properties and JVM command-line flags. literally the whole vibe check of your JVM πŸ’–

If the specified process is running on a 64-bit JVM, then you might need to specify the -J-d64 option, for example:

jinfo -J-d64 -sysprops pid

okay so this is the part where I need you to pay attention bestie β€” this command is unsupported and might not be available in future releases of the JDK. it's giving limited edition, so don't get too attached 😭

In Windows Systems where dbgeng.dll is not present, the Debugging Tools for Windows must be installed to have these tools work. 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 this is a lot of info but it's important, ngl πŸ”₯


πŸ‘‘ 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 like, it just gives you everything by default. generous queen πŸ’…
  • -flag name β€” Prints the name and value of the specified command-line flag.
  • -flag [+|-]name β€” Enables or disables the specified Boolean command-line flag.
  • -flag name=value β€” Sets the specified command-line flag to the specified value.
  • -flags β€” Prints command-line flags passed to the JVM.
  • -sysprops β€” Prints Java system properties as name-value pairs.
  • -h or -help β€” Prints a help message. (the classic "help me help you" moment ✨)

and that's the whole manual bestie β€” you're now fully caught up on jinfo and honestly? your JVM knowledge is looking real main character energy right now πŸŒˆπŸ’œ

this page was brought to you by JDK 22, dated 2024 β€” stay slay, stay curious, and remember: always check your pid before you commit πŸŽ€

πŸ“¦ where this page comes from