Here is a question answered on StackOverflow:
https://stackoverflow.com/questions/27221292/when-should-i-use-javas-stringwriter

Could you try using StringBuilder instead since the usage is not
appropriate for a StringWriter?


On Wed, Sep 2, 2020 at 2:49 PM Talat Uyarer <tuya...@paloaltonetworks.com>
wrote:

> Hi,
>
> I have an issue with String Concatenating. You can see my code below.[1] I
> have a step on my df job which is concatenating strings. But somehow when I
> use that step my job starts getting jvm restart errors.
>
>  Shutting down JVM after 8 consecutive periods of measured GC thrashing.
>> Memory is used/total/max = 4112/5994/5994 MB, GC last/max = 97.36/97.36 %,
>> #pushbacks=3, gc thrashing=true. Heap dump not written.
>
>
> And also I try to use Avro rather than String. When I use Avro, it works
> fine without any issue. Do you have any suggestions?
>
> Thanks
>
> [1] https://dpaste.com/7RTV86WQC
>
>
>

Reply via email to