如何dump出一个Java进程里的类对应的Class文件

如何dump出一个Java进程里的类对应的Class文件,第1张

class-dump-x 提取私有库里面的隐藏文件

class-dump

This is a command-line utility for examining the Objective-C runtime information stored in Mach-O files It generates declarations for the classes, categories and protocols This is the same information provided by using 'otool -ov', but presented as normal Objective-C declarations, so it is much more compact and readable

Why use class-dump

It's a great tool for the curious You can look at the design of closed source applications, frameworks, and bundles Watch the interfaces evolve between releases Experiment with private frameworks, or see what private goodies are hiding in the AppKit Learn about the plugin API lurking in Mailapp

If you find class-dump useful, you can donate to help support its development Thanks!

Download

Current version: 333 (Universal, 64 and 32 bit)

Requires Mac OS X 105 or later

class-dump-333dmg

class-dump-333targz

class-dump-333tarbz2

Changes - News

Contact

You can email questions and bug reports to me at class-dump@codethecodecom, or nygard at gmailcom

jmap + mat是我们分析java内存的利器,而通过mat oql,我们可以从dump文件里提取出更多的类似于有多少内容相同的不同字符串对象等信息来帮助我们做技术决策。

希望回答能给你带来帮助~

如果满意,请采纳,如还有疑问,可继续追问!

您也可以向我们团队发出请求,会有更专业的人来为您解答!

jmap是java自带的工具

1 查看整个JVM内存状态

jmap -heap [pid]

2 查看JVM堆中对象详细占用情况

jmap -histo [pid]

3 导出整个JVM 中内存信息,可以利用其它工具打开dump文件分析,例如jdk自带的visualvm工具

jmap -dump:file=文件名dump [pid]

以上就是关于如何dump出一个Java进程里的类对应的Class文件全部的内容,包括:如何dump出一个Java进程里的类对应的Class文件、如何通过mat从java内存dump中找到缓存对象中的所有字符串、java visualvm 堆dump怎么分析等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/10102766.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-05
下一篇2023-05-05

发表评论

登录后才能评论

评论列表(0条)

    保存