JDK-8059039 : JEP 241: Remove the jhat Tool
  • Type: JEP
  • Component: core-svc
  • Sub-Component: tools
  • Priority: P2
  • Status: Closed
  • Resolution: Delivered
  • Fix Versions: 9
  • Submitted: 2014-09-24
  • Updated: 2016-09-06
  • Resolved: 2016-03-10
Related Reports
Duplicate :  
Relates :  
Sub Tasks
JDK-8059047 :  
JDK-8076473 :  
JDK-8076524 :  
JDK-8076525 :  
JDK-8079200 :  
JDK-8179062 :  

Remove the antiquated `jhat` tool.


`jhat` was added in JDK 6, based upon the java.net [HAT project][hat].
`jhat` is an experimental, unsupported, and out-of-date tool.  Superior
heap visualizers and analyzers have now been available for many years.

[hat]: https://java.net/projects/hat


Stop building and shipping the `jhat` tool in the JDK.

Document this change in the appropriate release notes.  Very few people
are using this tool, so the impact on users should be minimal.  The tool
has long been marked for removal in the documentation with the words:

> NOTE: This tool is experimental and may not be available in future
  versions of the JDK.


Existing `jhat` tests will need to be removed.

Some existing tests for `hprof` file creation use `jhat` to validate the
files.  We'll need to preserve the `jhat` `hprof` file parser/validator
for use in these tests.  That does not mean, however, that the code has
to be in the product, rather it should be part of the tests.