BS-2331, fix permGen spoace