Considering String performance, have a look at the -XX:+PrintStringTableStatistics
and -XX:StringTableSize=
. Java 7 comes with nice features that allow tuning of String cache when using the interned Strings. This way you can optimize the String cache size.
And, a related String Performance Q/A: Java GC tuning for strings