Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic