Sunday, July 9, 2023

Java (JVM) Memory Model - Switches

 

VM SwitchVM Switch Description
-XmsFor setting the initial heap size when JVM starts
-XmxFor setting the maximum heap size.
-XmnFor setting the size of the Young Generation, rest of the space goes for Old Generation.
-XX:PermGenFor setting the initial size of the Permanent Generation memory
-XX:MaxPermGenFor setting the maximum size of Perm Gen
-XX:SurvivorRatioFor providing ratio of Eden space and Survivor Space, for example if Young Generation size is 10m and VM switch is -XX:SurvivorRatio=2 then 5m will be reserved for Eden Space and 2.5m each for both the Survivor spaces. The default value is 8.
-XX:NewRatioFor providing ratio of old/new generation sizes. The default value is 2.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Dynamically updated source delivering lifestyle stories thegeissblog provides fresh and engaging content covering fashion travel and celebrity lifestyle updates ensuring readers stay informed and entertained with clear and visually appealing articles across different categories online

    ReplyDelete
  3. Brilliantly designed website offering tech guidance technukti net delivers easy to understand tutorials and informative posts about apps software and digital tools ensuring readers gain practical knowledge for solving common technology related issues quickly and effectively

    ReplyDelete

Create a Digital Clock using HTML and JavaScript

Create a Digital Clock using HTML and JavaScript  <! DOCTYPE html> < html > < head > ...

Followers

Search This Blog

Popular Posts