« June 2006 »
SunMonTueWedThuFriSat
    
1
2
3
4
5
6
8
9
10
11
12
13
15
17
18
20
21
23
25
26
 
       
Today
XML

Blog::Navigation

GetJava Download Button
Get the Source
Personal Blog

Blog::Referers

Today's Page Hits: 79

Powered by Roller Weblogger.
« Previous day (Jun 26, 2006) | Main | Next day (Jun 28, 2006) »
20060628 Wednesday June 28, 2006

intern()'ed Strings, perm. gen and jmap

I came across "All about intern()" recently. Few more facts:

  1. In Sun's JDK, internalized Strings are stored in the permanent generation and hence "compete" for space with meta-data (like, classes, methods, constant pools etc.)
  2. You may have to have increase perm. gen space using the -XX:MaxPermSize option.
  3. With Mustang (Java SE 6), the jmap tool's -permstat option prints statistics on the internalized trings (total number and size of occupied by intern'ed strings).



( Jun 28 2006, 07:25:15 PM IST ) Permalink del.icio.us | furl | simpy | slashdot | technorati | digg

Copyright (C) 2005, A. Sundararajan's Weblog