Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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: 40912
840
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
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic