Home > Java > javaTutorial > body text

Java virtual machine learning - command line tool to view JVM parameters and values

黄舟
Release: 2017-02-17 10:36:21
Original
1599 people have browsed it

How to view each parameter value of JVM

1. Each globals.hpp file in HotSpot vm View the initial default value and parameters of jvm

globals.hpp

globals_extension.hpp

c1_globals.hpp

c1_globals_linux.hpp

c1_globals_solaris.hpp

c1_globals_sparc.hpp

c1_globals_windows.hpp

c1_globals_x86. hpp

c2_globals.hpp

##c2_globals_linux.hpp

c2_globals_solaris.hpp

c2_globals_sparc.hpp

##c2_globals_windows.hpp

##c2_globals_x86.hpp

g1_globals.hpp

globals_linux.hpp

globals_linux_sparc.hpp

globals_linux_x86. hpp

globals_linux_zero.hpp

globals_solaris.hpp

globals_solaris_sparc.hpp

globals_solaris_x86.hpp

globals_sparc.hpp

##globals_windows.hpp

globals_windows_x86.hpp

globals_x86.hpp

globals_zero.hpp

shark_globals. hpp

shark_globals_zero.hpp

arguments.cpp

2.-XX:+PrintFlagsInitialParameters

Display all settable parameters and default values. You can combined -XX:+PrintFlagsInitial and -XX:+PrintFlagsFinal to compare the differences before and after setting, so that you can know which parameters have been adjusted.

#3.-XX: +PrintFlagsFinal parameter

can obtain all settable parameters and values ​​​​(values ​​after manual setting). This parameter can only be used in Jdk6 update 21 or above (including this version ). The usage of the -XX:+PrintFlagsFinal parameter is the same as the above -XX:+PrintFlagsInitial parameter java -XX:+PrintFlagsFinal

4. Use the jinfo command to view or set the value of a parameter,

##jinfo command format:

jinfo [option]

pid virtual machine process id can be viewed through the jps command

Example: Query the value of the MaxPermSize parameter


##Or directly use jinfo -flags pid to view all setting parameters of the vm

5. -XX:+PrintCommandLineFlags parameter

Displays all parameters and their values ​​that are different from the initial default values ​​after the JVM is initialized.

The above is the content of Java virtual machine learning - the command line tool to view JVM parameters and values, more related content Please pay attention to the PHP Chinese website (m.sbmmt.com)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!