我们开始检查我的应用程序的性能,因为它在一段时间后变得缓慢。我正在使用jvisualvm来观察原因。谁能告诉我如何在Unix中使用jvisualvm,就像在Windows中一样,我们可以通过UI检查它。在Unix中我们也可以有相同的视图吗?
让我的jvisualvm路径是/Prj/tools/java/bin/jvisualvm
当我使用帮助时,
Usage: /Prj/tools/java/bin/../lib/visualvm//platform7/lib/nbexec {options} arguments
General options:
--help show this help
--jdkhome <path> path to Java(TM) 2 SDK, Standard Edition
-J<jvm_option> pass <jvm_option> to JVM
--cp:p <classpath> prepend <classpath> to classpath
--cp:a <classpath> append <classpath> to classpath
Core options:
--laf <LaF classname> use given LookAndFeel class instead of the default
--fontsize <size> set the base font size of the user interface, in points
--locale <language[:country[:variant]]> use specified locale
--userdir <path> use specified directory to store user settings
Module reload options:
--reload /path/to/module.jar Installs or reinstalls a module JAR file.发布于 2013-10-23 14:40:22
只需在终端中键入:
/Prj/tools/java/bin/jvisualvm然后按enter键。如果您想要传递一些参数或选项(如JDK home),请使用help提供的格式将其放在上面命令中的"jvisualvm“之后。
发布于 2013-10-23 14:44:28
您可以从jvisualvm设置到unix计算机的远程连接。
否则,您可以将unix的DISPLAY参数设置为您的桌面IP,如DISPLAY=<your IP>:0.0;export DISPLAY 注:根据您的SHELL使用unix命令
发布于 2017-11-22 18:22:50
我希望这能行得通
https://stackoverflow.com/questions/19534404
复制相似问题