IntelliJ Java IDE
The moose likes Performance and the fly likes Where can I find jmap for Windows/JDK 1.5? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Performance
Reply Bookmark "Where can I find jmap for Windows/JDK 1.5?" Watch "Where can I find jmap for Windows/JDK 1.5?" New topic
Author

Where can I find jmap for Windows/JDK 1.5?

Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 234
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


Paul M. Santa Maria, SCJP
Nathan Russell
Ranch Hand

Joined: Aug 18, 2004
Posts: 75
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
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 23635

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3, OCAJP
Amol Fuke
Ranch Hand

Joined: Apr 08, 2005
Posts: 129
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


"There are no mistakes, only lessons"
SumitPal Pal
Greenhorn

Joined: Aug 31, 2010
Posts: 21
it tells you which instances/objects in your JVM Heap consume how many bytes of space
 
 
subject: Where can I find jmap for Windows/JDK 1.5?
 
Threads others viewed
Java Heap dump Size and Resident Memory(RES) Size
Heap dumps on 32bit and 64 bit JVM
.JAR file appears to stop running
Java Heap dump Size and Resident Memory(RES) Size
taking a heap dump
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com