groovy - java.lang.StringBuffer java.lang.OutOfMemoryError: Java heap space -


i getting below error while reading data database. please provide thought cause. note - have increased maximum heap size.

exception in thread "thread-4" exception in thread "thread-2" java.lang.outofmemoryerror: java heap space     @ java.lang.abstractstringbuilder.<init>(abstractstringbuilder.java:45)     @ java.lang.stringbuffer.<init>(stringbuffer.java:79)     @ com.ddtek.pool.connectionpool.enforceminimum(unknown source)     @ com.ddtek.pool.connectionpool.domaintenance(unknown source)     @ com.ddtek.pool.connectionpoolgroup.domaintenance(unknown source)     @ com.ddtek.pool.connectionpoolmaintenance.run(unknown source) java.lang.outofmemoryerror: java heap space     @ java.util.arrays.copyof(arrays.java:2882)     @ java.lang.abstractstringbuilder.expandcapacity(abstractstringbuilder.java:100)     @ java.lang.abstractstringbuilder.append(abstractstringbuilder.java:390)     @ java.lang.stringbuffer.append(stringbuffer.java:224)     @ com.ddtek.pool.connectionpool.enforceminimum(unknown source)     @ com.ddtek.pool.connectionpool.domaintenance(unknown source)     @ com.ddtek.pool.connectionpoolgroup.domaintenance(unknown source)     @ com.ddtek.pool.connectionpoolmaintenance.run(unknown source) java.lang.outofmemoryerror: java heap space     @ org.codehaus.groovy.reflection.cachedclass$3.initvalue(cachedclass.java:97)     @ org.codehaus.groovy.reflection.cachedclass$3.initvalue(cachedclass.java:80)     @ org.codehaus.groovy.util.lazyreference.getlocked(lazyreference.java:46)     @ org.codehaus.groovy.util.lazyreference.get(lazyreference.java:37)     @ org.codehaus.groovy.reflection.cachedclass.getmethods(cachedclass.java:251)     @ org.codehaus.groovy.reflection.cachedclass$3.initvalue(cachedclass.java:117)     @ org.codehaus.groovy.reflection.cachedclass$3.initvalue(cachedclass.java:80)     @ org.codehaus.groovy.util.lazyreference.getlocked(lazyreference.java:46)     @ org.codehaus.groovy.util.lazyreference.get(lazyreference.java:37)     @ org.codehaus.groovy.reflection.cachedclass.getmethods(cachedclass.java:251)     @ org.codehaus.groovy.reflection.cachedclass$3.initvalue(cachedclass.java:117) 

use eclipse mat tool causing memory leak, follows 1- use java visualvm run application , in time heap dumb, keep running around 1 or 2 hour , other heap dumb, configure visualvm hep dumb on oom situation. 2- use mat tool (it eclipse memory analysis tool) , analyze of heaps dumb, sure able root cause, 1 of hardest task in java.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -