You can set size of pool StringBuilder with java vm argument with key -Dorg.baculsoft.stringbuildermax =[SIZE]