Usage:
This flag instructs the JVM to use anonymous memory cache for Performance stats instead of a file to avoid loss of performance due to the spontaneous disk I/O.
Since:
Starting from JDK 6.
Examples:
To disable storing the performance stats in memory:
java -XX:+PerfDisableSharedMem MainClass
Description:
This parameter determines whether the memory for storing PerfData can be shared, that is to say, regardless of whether this parameter is set or not, the JVM will allocate a piece of memory to store the PerfData when it starts, just to say whether the PerfData is visible to other processes. If this parameter is set, it means that it cannot be shared, and other processes will not be able to access the memory at this time, so, for example, our jps, jstat, etc. will not work. By default, this parameter is turned off, which means that sharing is supported by default.
Default Value:
By default, this flag is disabled.
Arguments related:
UsePerfData
Related Posts:
Edit your Comment