24.12.2012 Views

in startsap/stopsap command line executable , the ... - BeKnowledge

in startsap/stopsap command line executable , the ... - BeKnowledge

in startsap/stopsap command line executable , the ... - BeKnowledge

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Explanation of <strong>the</strong> Term “Generation”<br />

• The three ma<strong>in</strong> memory areas of <strong>the</strong> VM, <strong>the</strong> young, tenured, and permanent generations<br />

differ from one ano<strong>the</strong>r due to <strong>the</strong> data stored <strong>in</strong> <strong>the</strong>m. The objects that have been newly<br />

created by <strong>the</strong> applications are stored <strong>in</strong> <strong>the</strong> young generation.<br />

• Objects that have been required for a longer period of time by an application are<br />

automatically moved to <strong>the</strong> tenured generation. The newer objects are <strong>in</strong> <strong>the</strong> young<br />

generation and <strong>the</strong> older objects are <strong>in</strong> <strong>the</strong> tenured generation.<br />

• Objects that are permanently required by <strong>the</strong> VM, such as classes and methods, are<br />

stored <strong>in</strong> <strong>the</strong> permanent generation.<br />

• Objects that are no longer required by <strong>the</strong> applications are automatically removed from <strong>the</strong><br />

generation. This process is known as garbage collection.<br />

• The generations have an <strong>in</strong>itial and a maximum size. For <strong>the</strong> young generation, you can<br />

def<strong>in</strong>e <strong>the</strong> <strong>in</strong>itial size with <strong>the</strong> parameter -XX:NewSize, and <strong>the</strong> max size with <strong>the</strong><br />

parameter -XX:MaxNewSize.<br />

• You can def<strong>in</strong>e <strong>the</strong> correspond<strong>in</strong>g values for <strong>the</strong> permanent generation (also abbreviated<br />

to <strong>the</strong> perm generation) with <strong>the</strong> parameters -XX:PermSize and -XX:MaxPermSize.<br />

• You cannot directly def<strong>in</strong>e <strong>the</strong> <strong>in</strong>itial and maximum sizes of <strong>the</strong> tenured generation. These<br />

are calculated from <strong>the</strong> parameters for <strong>the</strong> young generation and <strong>the</strong> parameters -Xmx<br />

and -Xms.<br />

• The parameter -Xmx is called <strong>the</strong> max heap size and def<strong>in</strong>es <strong>the</strong> total size of <strong>the</strong> young<br />

and tenured generations.<br />

• The parameter -Xms is called <strong>the</strong> start heap size or <strong>in</strong>itial heap size and def<strong>in</strong>es <strong>the</strong> total<br />

<strong>in</strong>itial size of <strong>the</strong> young and tenured generations.<br />

18 October 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!