java - Application leads to memory leak -


currently working in smartgwt project consumes lot of memory when application performs crud or grid loading , refreshing operations , application deployed in tomcat server 7.0 . have tried thread specification , memory restriction in tomcat won't works.could please suggest way avoid memory leak. awaiting reply.

in order avoid memory leak. should information on objects allocated on application. if using ibm jdk jvm collect javacore, system core , snaptrace when jvm throws outofmemory. until system throws oom not clear picture on object allocation , de allocation pattern.

for example: if take systemcore in middle of application run time. there possibilities gc yet run clean dead objects current snapshot may not give full picture of application allocation. when jvm throws oom means gc kicked on , possible collection of dead objects taken care analyzing existing objects in heap reflect true information on java heap.

once collect logs load system core in memory analyzer tool. https://www.ibm.com/developerworks/java/jdk/tools/memoryanalyzer/ in identifying leaks.

if using oracle jdk please follow http://www.oracle.com/technetwork/java/javase/memleaks-137499.html


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -