适用于 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 23:28:19  来源:igfitidea点击:

Java Profiling Tool for Linux

javalinux

提问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

All these Java profiling tools can be used in Linux:

所有这些 Java 分析工具都可以在 Linux 中使用:

回答by bakkal

http://profiler.netbeans.org/

http://profiler.netbeans.org/

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.

在跟踪模式下,此工具可用于识别内存分配的来源