unvis中的jvisualvm

zdh*_*him 5 java unix jvm jvisualvm

我们开始检查我的应用程序的性能,因为它在一段时间后变慢.我正在使用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.
Run Code Online (Sandbox Code Playgroud)

Thi*_*ara 0

转到 JDK bin 文件夹并jvisualvm通过键入jvisualvm并按 Enter 键运行二进制文件。