• 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

Memory leak in JBossAS

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Memory leak associated with the JBossAS:-

JBossAS server version:- 4.0.5.GA
Container:- EJB Container ( with MDB)

While processing message within MDB, whenever a runtime exception (Wrapped with the EJBException) occurs , the instance of the MDB is not garbage collected. We can see a new instance of MDB generated but all the remnants of the previous MDB still in the heap. While examining the JBOSS with eclipse TPTP, we could see the reference of the bad MDB instance still in a HashMap, managed by the JBoss.

Has anyone encountered this issue. Appreciate any help .

Thanks
Nam
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
4.0.5 is a bit too old. So even if it was a bug, it probably would have been fixed in the later versions. Have you tried with the latest 4.2.3 version in 4.x series?
 
Naman Dhaliwal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We currently have this working instance in prod which no body want to migrate, untill there is a show stopper.
I actually wanted to check if this is a known issue and community is aware of it.


Thanks
Nam
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey ..

I had encountered a memory leak issue as well. And I stated it exactly as you have stated .-> Memory leak in JBoss.

But later I realised that is not JBoss which is responsible, it is bad coding which was retaining a hashmap in memory and was referenced forever and hence the problem.

This is how I got to the issue :
1. I analysed the heap dumps [taken at relative times in Production] and then i analysed the objects/worker threads that are grwoing in size.
2. Now when you open these worker threads you will see Hash Maps which are holding some information.
3. Check in the code where these objects are being made and where you have done lose coding by still referncing them.


However, this is easier said than done, it took me a month to get to the root of it .

 
I am not a spy. Definitely. Definitely not a spy. Not me. No way. But this 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