Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336063

Doccheck: the jcmd command page doesn't show the correct command-line options

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 24
    • 23
    • hotspot
    • svc

      In the jcmd map page: https://docs.oracle.com/en/java/javase/22/docs/specs/man/jcmd.html, under "System.dump_map [options] (Linux only)" you find the option:
      -F: (Optional) File path (STRING, "vm_memory_map_.txt")
      but it actually should
      -F: (Optional) File path (STRING, "vm_memory_map_<pid>.txt")

      The issue is that the "<" sign is not correctly escaped, and it should be &lt;pid> or &lt;pid&gt: rather than <pid>

      Running tidy using the "-q -e --gnu-emacs true" options on specs/man/java.html gives the following specs/man/java.html

      jcmd.html
      jcmd.html:698:16: Error: <pid> is not recognized!
      jcmd.html:698:16: Warning: discarding unexpected <pid>

            Unassigned Unassigned
            nbenalla Nizar Benalla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: