• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

To find out memory leaks in struts application

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sometimes I am getting OutOfMemory error when running my projects for multiple users.I am using jdk 1.6,netbeans 6.0. Can anyone suggest how to find out the memory leaks or to overcome this error. As I am using jdk 1.6, it takes the size of the heap automatically according to the operating System.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could use a code profiler, but so far it sounds like it'd be easier to just look at the stack trace to see when the OOM occurs--without any further information it sounds like you're just doing something that's eating all the memory.
 
Abhi Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you David for your suggestion. I have used profiler to get those results but I am not getting the actual point where the leakage occurs. Still i will try. Anyways thanks for your suggestion
 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
using PrintClassHistogram as VM parameter, and dumping several memory snapshots at different time to GC.log file,

By analyzing incensement of number and size of objects, you could find the root cause.

 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaRanch FAQ: InvestigateOutOfMemoryError
 
reply
    Bookmark Topic Watch Topic
  • New Topic