Skip to content

-XX:[+|-]UTFCache

This option enables or disables the UTF to String cache used to enhance reflection performance.

Syntax

    -XX:[+|-]UTFCache
Setting Effect Default
-XX:+UTFCache Enable yes
-XX:-UTFCache Disable

The option, -XX:+UTFCache, causes the VM to cache the conversion of UTF8 data to java String objects during reflection. This is the default option.

When specifying the -XX:-UTFCache option, the VM does not performing this caching.