• 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

Where can I find jmap for Windows/JDK 1.5?

 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi -

It looks like something on one of our JBoss servers is leaking memory. JConsole shows that we're using more and more Heap ... but I'm not sure what tools are available to determine *what* is leaking.

Our environment is JBoss 4.2.1GA, Sun Java JDK 1.5.0_12 (Sun HotSpot 64-bit Server compiler).

Q: where can I download a compatible version jmap.exe and/or jhat.exe?

Q: are you aware of any other tools that can do a heap dump (or "moral equivalent" of a heap dump) to help troubleshoot this problem?

Thank you in advance .. PSM
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could be wrong, but I'm pretty sure jmap is only in the JDK distributions, but crucially is not available in the Windows distro's for some reason?
We had the exact same requirement (tracing a memory leak type problem of an app running under Jboss) and we had to host it on linux to be able to use jmap

Hope this helps;

Nathan
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've had a half written blog entry on this topic for months. It's now finished.

It comes with Java 1.6 for Windows. Just download the latest Java.
 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I filtered hprof file from jmap based on classes and I see 2 columns 'Instances' and 'Size' apart from others.Can I know what does these 2 columns mean ? I see the size for some classes as big as 300.

Please let me know what these 2 column means ?

Thanks,
Amol
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it tells you which instances/objects in your JVM Heap consume how many bytes of space
 
The moustache of a titan! The ad of a flea:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic