Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how find the source which hold intern string in perm

810949Nov 5 2010 — edited Nov 23 2010
I got OOM in perm, then I reset the Max perm to 512m, but still got about 2-3m perm increasement per day. By using "jmap -permstat" and MAT, I can conclude the increasement is due to intern string. The question is how can I find which part of my application or source which make this happen?
"jmap -permstat" only got the summary information, as following "60234 intern Strings occupying 10403568 bytes." I find about 10,000 intern string and 3Mb increasement per day, some of my guy think it is perm leak.
I thought find String.intern() source code is one way,any other suggestion?

Edited by: user11136010 on 2010-11-5 下午5:45
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2010
Added on Nov 5 2010
13 comments
462 views