• 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

How to get heap dump when Jboss is running and when a particular error happens.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We use Jboss5 and need to take heap dump when Jboss is running and when a particular error happens.

If we pass -Xrunhprof:format=b,file=xx.hprof
Or
if we use jmap jmap -dump:format=b,file=heap.bin <pid>

it will write the dump file, but will be of very large size and system gets hang.

So can anybody please help- to take heap dump only if we want (or when a particular error (other than out of memory) happens)

Thanks
Smitha
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"smita nn" please see your private messages for an important administrative matter.

Also, please carefully choose which form to post to. Your question is about JBoss AS, not about an IDE, moving to the correct forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic