java.lang.RuntimeException: java.lang.OutOfMemoryError:GC -
this question has answer here:
i getting below error in java code.
code:
try{ ..... ..... } finally{ try { map out = mydao.copydata(12345); } catch(throwable th) { throw new runtimeexception(th); } }
the method copydata call 1 procedure.
error:
java.lang.runtimeexception: java.lang.outofmemoryerror: gc overhead limit exceeded @
could please tell causing type of error?
you're going have reconsider copydata method should do, because whatever it's doing using memory.
consider needs passed in map returns. problem you're storing huge amount of stuff in map.
also think whether there ways copying without bringing data memory. may need flush hibernate session/jpa entity manager periodically, or rip out jpa/hibernate code altogether , replace jdbc or calls bulk-copy utility.
Comments
Post a Comment