• 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

OutOfMemoryException on Collection

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We have a app in production where we are seeing a bunch of these errors & we believe its being caused by an internal Collection of objects that we maintain (for each request) throughout the life of the request
We strongly suspect that at times this collection is not getting cleaned up properly & thus causing memory leaks. The correct solution would to see that the collection is null'd for the requests at all exit points. I am afraid we dont have the time to identify all these as quickly as we need the solution.
Are there any suggestions that folks over here can make on how to track the culprit requests still hanging in memory... Of course, we don't want to eradicate the ones that are still in process... only the ones that are done processing.
thx
 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about running your app under a profiler to find out where all the memory goes?
 
Himanshu Jhamb
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We haven't really pointed out the exact place using a profiler in the dev env... but we found from a production monitoring tool that this collection is the culprit.
So, we did use a tool - now we need to find a way to fix this hole... or at least clean up after it.
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic