Profile Image
vishnupriya

What is Memory tuning: -XX:NewSizeThreadIncrease?

What is Memory tuning: -XX:NewSizeThreadIncrease? 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-newsizethreadincrease

  • x-newsizethreadincrease

  • Memory tuning

Please Sign In or to post your comment or answer

Profile Image

Pavel Khodakovsky

Usage:

 

You can change increment size for heap with:

 

-XX:NewSizeThreadIncrease=size, where size is one the amount of memory in Kilobytes.

 

Examples:

 

Will set the increment size to 1024 Kilobytes:

 

-XX:NewSizeThreadIncrease=1024

 

Description:

 

The JVM heap grows during the run of the application. As more threads created in a server application, the object allocation rate will increase with the number of active threads. The number of active threads is considered when adjusting the size of the young space, after a garbage collection. This flag specifies, in Kilobytes, the increment in young object space size, per active thread, to accomodate potentially faster object allocation rate. For applications that frequently create a lot of objects modifying the value for this options could boost performance.

 

Default Value:

 

System-dependent

 

Errors:

 

None

 

Arguments related:

 

TODO link UseG1GC, MinHeapFreeRatio, MaxHeapFreeRatio, Xmx, Xms, UseSerialGC, USeParNewGC, UseParallelGC, UseZGC

 

 Related Posts:

NOTE:

 

If you have additional comments, interesting experiences or even point of disagreement with this JVM argument description, please leave a comment. Your insights will help the entire 10+ million java developer community to develop one standard source of documentation for all the JVM arguments.

Got something else on mind? Post Your Question

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

  • xx-newsizethreadincrease

  • x-newsizethreadincrease

  • Memory tuning