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

Add Diagnostic Command to list all ClassLoaders

XMLWordPrintable

    • svc
    • b22

        The command should mimic the behavior of the "jmap -clstats" option which uses SA to list all ClassLoaders.

        It could look something like this:

        $ jcmd Sleeper GC.classloader_stats
        74864:
        ClassLoader Parent CLData* Classes ChunkSz BlockSz Type
        0x0000000000000000 0x0000000000000000 0x00007f927ad0c028 569 393216 358760 <boot classloader>
        0x00000007c0037f20 0x00000007c002ebf0 0x00007f927af0fda8 1 2048 512 sun.misc.Launcher$AppClassLoader
        0x00000007c002ebf0 0x0000000000000000 0x0000000000000000 0 0 0 sun.misc.Launcher$ExtClassLoader
        Total = 3 570 395264 359272

              sla Staffan Larsen (Inactive)
              sla Staffan Larsen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: