JDK7 perm gen leak

Tom Rodriguez tom.rodriguez at oracle.com
Mon Sep 12 12:26:55 PDT 2011

On Sep 12, 2011, at 10:25 AM, Jon Masamitsu wrote:

> On 09/12/11 08:03, Scott Oaks wrote:
>> I am trying to track down a permgen leak in an app we have running JDK 7. When I run jmap -permstat, I'm a little confused by the output.
>> The first line of the jmap output is:
>> 304286 intern Strings occupying 48081424 bytes.
>> But I thought that the interned strings were moved out of permgen in JDK 7? Maybe that output is just left over from JDK 6.
> Yes, the strings were moved out of the perm gen.  The numbers from
> the output are generated from the internal StringTable.  I believe
> the numbers are correct but perhaps shouldn't be printed out
> for  -permstat.

Yes, that should be removed.  It easy to fix this but it seems like it would still be useful to report interned string usage in the jinfo output.  I don't see any obvious place to put it though.  Any suggestions?



More information about the hotspot-dev mailing list