> How do I get the number of interned Strings from jvisualvm?

Don't know about jvisualvm but:

"The jmap -permgen command prints statistics for the objects in the
permanent generation, including information about internalized String
instances. See   2.7.4 Getting Information on the Permanent
Generation."

http://www.oracle.com/technetwork/java/javase/tooldescr-136044.html#gblmm

There's also a magic switch to hotspot that dumps those strings:

  product(bool, PrintStringTableStatistics, false,                          \
          "print statistics about the StringTable and SymbolTable")         \
                                                                            \
  notproduct(bool, PrintSymbolTableSizeHistogram, false,                    \
          "print histogram of the symbol table")                            \


D.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to