in startsap/stopsap command line executable , the ... - BeKnowledge
in startsap/stopsap command line executable , the ... - BeKnowledge
in startsap/stopsap command line executable , the ... - BeKnowledge
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Memory Management <strong>in</strong> AS JAVA<br />
• The memory area of a Java Virtual Mach<strong>in</strong>e (JVM or VM) is ma<strong>in</strong>ly divided <strong>in</strong>to three<br />
areas, which are called <strong>the</strong> young generation, <strong>the</strong> tenured generation, and <strong>the</strong> permanent<br />
generation. A "generation" reserves space <strong>in</strong> <strong>the</strong> address area of <strong>the</strong> host.<br />
• On start-up, <strong>the</strong> Virtual Mach<strong>in</strong>e allocates operat<strong>in</strong>g system memory for each "generation".<br />
This <strong>in</strong>itially allocated memory area is called "<strong>in</strong>itial" or <strong>in</strong>itial size.<br />
• This occupancy of this space is adm<strong>in</strong>istered <strong>in</strong>ternally by <strong>the</strong> VM.Once <strong>the</strong> <strong>in</strong>itial space<br />
has been used, <strong>the</strong> VM allocates fur<strong>the</strong>r operat<strong>in</strong>g system memory space <strong>in</strong> stages up to<br />
a maximum amount. This maximum value is def<strong>in</strong>ed <strong>in</strong> "max size".<br />
• The VM automatically takes care of <strong>the</strong> allocation of memory space for Java applications.<br />
The memory space is implicitly assigned when an object is created.<br />
• Even if a large amount of memory is required, this does not mean that <strong>the</strong> system is at<br />
risk. The VM determ<strong>in</strong>es which objects are no longer used and releases <strong>the</strong> memory<br />
areas which <strong>the</strong>y currently occupy. This task is performed by <strong>the</strong> Special Java Agent<br />
named Garbage Collector (GC) which forms part of <strong>the</strong> VM. Its job is to prevent <strong>the</strong><br />
occurrence of situations <strong>in</strong> which <strong>the</strong>re is a danger of memory bottlenecks.<br />
• The memory space that is available is called <strong>the</strong> available memory or allocated memory.<br />
S<strong>in</strong>ce this space is reserved by <strong>the</strong> operat<strong>in</strong>g system, it is also referred to as .reserved.<br />
space s<strong>in</strong>ce <strong>the</strong> entire space up to <strong>the</strong> maximum size is .available.. The space that is not<br />
yet reserved is called virtual memory. However, this should not be confused with <strong>the</strong><br />
.virtual memory. of <strong>the</strong> operat<strong>in</strong>g system. If less space is required, <strong>the</strong> memory is returned<br />
to <strong>the</strong> operat<strong>in</strong>g system, also <strong>in</strong> stages.<br />
• The reserved memory space (available memory) is potentially available to <strong>the</strong> VM.<br />
However, it does not have to be used <strong>in</strong> full. The memory space that is actually used by<br />
Java applications is referred to as used memory.<br />
18 October 2010