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).
Comments:

Post a Comment:
Comments are closed for this entry.
About

sundararajan

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
Links

No bookmarks in folder

Blogroll

No bookmarks in folder

News

No bookmarks in folder