Profile Image
vishnupriya

What is JVM startup parameter: -XX:+PerfDisableSharedMem?

What is JVM startup parameter: -XX:+PerfDisableSharedMem? Have you used this JVM arguement before? What are the pros & cons of using this Java argument? Can you share your perspective/experience in using this JVM argument?

  • jvmargument

  • xx-perfdisablesharedmem

  • x-perfdisablesharedmem

  • JVM startup parameter

Please Sign In or to post your comment or answer

Profile Image

Pavel Khodakovsky

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:

 

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jvmargument

  • xx-perfdisablesharedmem

  • x-perfdisablesharedmem

  • JVM startup parameter