-Djava.lang.stringBuffer.growAggressively

The default behavior is to grow a 1 G char[] or larger StringBuffer or StringBuilder only as much as necessary to accommodate the String being added. Set this property to true to immediately grow to the maximum possible size, which matches the Oracle HotSpot VM.

Syntax

    -Djava.lang.stringBufferAndBuilder.growAggressively=[true|false]
Setting Effect Default
true Above 1 G, grow to the maximum size yes
false Above 1 G, grow only as required