适用于 Linux 的 Java 分析工具
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2921390/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Java Profiling Tool for Linux
提问by Sunil
I want to run a java program on a linux server in profiling mode.
我想在分析模式下在 linux 服务器上运行一个 java 程序。
Is there any profiling tool that can profile a java program on a Linux server in command prompt?
是否有任何分析工具可以在命令提示符下分析 Linux 服务器上的 Java 程序?
采纳答案by b.roth
回答by Tansir1
JVisualVM is a very basic profiling tool that comes with the official JDK from Sun.
JVisualVM 是 Sun 官方 JDK 附带的一个非常基本的分析工具。
http://java.sun.com/javase/6/docs/technotes/tools/share/jvisualvm.html
http://java.sun.com/javase/6/docs/technotes/tools/share/jvisualvm.html
EDIT: Also see .....
编辑:另见.....
Any recommended Java profiling tutorial?https://stackoverflow.com/questions/14762/please-recommend-a-java-profiler
任何推荐的 Java 分析教程?https://stackoverflow.com/questions/14762/please-recommend-a-java-profiler
回答by bakkal
Profiler
NetBeans profiler is a module to provide a full-featured profiling functionality for the NetBeans IDE. The profiling functions include CPU, memory and threads profiling as well as basic JVM monitoring, allowing developers to be more productive in solving memory or performance-related issues.
探查器
NetBeans 分析器是一个为 NetBeans IDE 提供全功能分析功能的模块。分析功能包括 CPU、内存和线程分析以及基本的 JVM 监控,使开发人员能够更高效地解决与内存或性能相关的问题。
回答by mchr
InMemProfilercan be used at the command line to profile memory allocations. Live vs collected allocations can be tracked and collected objects can be split into buckets based on their lifetimes.
InMemProfiler可以在命令行中使用来分析内存分配。可以跟踪实时分配和收集的分配,并且收集的对象可以根据其生命周期分成存储区。
In trace mode this tool can be used to identify the source of memory allocations.
在跟踪模式下,此工具可用于识别内存分配的来源。

