Starting 'jhat' Web Server on a Heap Dump File

1、如何使用 jhat

In an earlier tutorial example, I created a Java heap dump file with the "jmap" tool on my GarbageCollection.java program. The heap dump file is named as GarbageCollection.map. Now I want to try to run the "jhat" Web server on this dump file and browse the heap dump with a Web browser.java

1. Run the "jhat" command with default options:浏览器

C:\herong>\Progra~1\java\jdk1.8.0\bin\jhat GarbageCollection.map

Reading from GarbageCollection.map...
Dump file created Jan 1 00:08:10 EDT 2008
Snapshot read, resolving...
Resolving 67324 objects...
Chasing references, expect 13 dots.............
Eliminating duplicate references.............
Snapshot resolved.
Started HTTP server on port 7000
Server is ready.

2. Run a Web browser with http://localhost:7000. The "jhat" heap dump file server page shows up: 
jhat Heap Dump File Server服务器

See next sections on how to use "jhat" Web server to browse heap objects.this


2、UNIX 系统怎么浏览器浏览呢

Started HTTP server on port 7000

有一个办法就是利用SecureCRT的Port forwording 端口转发功能。spa

将本地的地址转发到服务器端的7000端口code

相关文章
相关标签/搜索