Nightmare java leak… with loop and jdbc

前端 未结 4 1901
臣服心动
臣服心动 2021-01-23 06:25

When I run the following code in the profiler, I get a char[] and byte[] that build up until the program crashes due to a java heap out of memory exception. Can someone tell me

4条回答
  •  甜味超标
    2021-01-23 07:05

    Add the heap dump on out of memory arg and then look at the heap with mat or similar. Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss

提交回复
热议问题