Difference between revisions of "FAQ: Understanding Memory"

From MIPAV
Jump to: navigation, search
Line 1: Line 1:
<div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 24pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> [FAQMain.backup.html#1050783 Understanding Memory]<br /></font>'''</div>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#999104 How do I allocate more memory for MIPAV?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1000586 How much memory does MIPAV require to run?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1000586 What affects memory requirements?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1002409 How do I determine the amount of additional memory needed?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1002837 How do I determine how much memory is currently being used?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1002914 How do I free memory?]</font></u></span>
 
 
<div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 24pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> [FAQMain.backup.html#1013441 Customizing MIPAV]<br /></font>'''</div>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1003009 How do I show or hide the splash screen?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1024973 How do I show or hide toolbars?]</font></u></span>
 
 
[FAQMain.backup.html#1047638 How can I load images from a CD on my Mac?]
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1036815 How do I save a history of actions on images?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1035970 How do I set up default file types to display or save?]</font></u></span>
 
 
<div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 24pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> [FAQMain.backup.html#1039967 Understanding Image Basics]<br /></font>'''</div>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1039970 How do I save images in a different format?]</font></u></span>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1011617 How do I combine two images for alphablending?]</font></u></span>
 
 
<div style="font-style: normal; margin-bottom: 3pt; margin-left: 0pt; margin-right: 0pt; margin-top: 24pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Understanding Changes in MIPAV<br /></font>'''</div>
 
 
<span style="font-style: normal; font-weight: normal; text-transform: none; vertical-align: baseline"><u><font color="#000000">[FAQMain.backup.html#1046141 Why doesn't MIPAV open my XML files?]</font></u></span>
 
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
 
 
{| border="1" cellpadding="5"
 
|+
 
|-
 
|
 
== Memory ==
 
|}
 
 
<br /></font></div>
 
 
 
=== How do I allocate more memory for MIPAV? ===
 
=== How do I allocate more memory for MIPAV? ===
 
+
1 Select <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help &gt; Memory Allocation</font>'''</span> in the MIPAV window. The Change Java.Runtime Memory Allocation dialog box (Figure 1) opens.<br /></font></div>
<div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 1 Select <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help &gt; Memory Allocation</font>'''</span> in the MIPAV window. The Change Java.Runtime Memory Allocation dialog box ([FAQMain.backup.html#1041379 Figure 1]) opens.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
+
  
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"
|+ <div style="font-style: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 1. Change Java.Runtime Memory Allocation dialog box<br /></font>'''</div>
+
|+ '''Figure 1. Change Java.Runtime Memory Allocation dialog box'''
 
|-
 
|-
|
 
<div class="CellBody"><span style="font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000"><br clear="all" />{| align="center"
 
 
|
 
|
 
[[Image:dialogboxMemoryAllocation.jpg]]
 
[[Image:dialogboxMemoryAllocation.jpg]]
|}<br clear="all" /></font></span></div>
 
 
|}
 
|}
  
<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 2 Change the Maximum heap size so that it reflects the maximum amount of desired memory to be allocated.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> If additional memory is needed, MIPAV allocates it until the memory reaches the maximum heap size you entered.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 12pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000"><br clear="all" />
+
2 Change the Maximum heap size so that it reflects the maximum amount of desired memory to be allocated.<br />If additional memory is needed, MIPAV allocates it until the memory reaches the maximum heap size you entered.<br />
  
 
{| align="left"
 
{| align="left"
Line 67: Line 16:
 
|}
 
|}
  
<br clear="all" /></font></span><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Note:</font>'''</span><span style="font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000"> </font></span>The maximum heap size should not exceed the amount of RAM installed on the computer. For example, if the computer has 512 Kb of RAM, a good number for the maximum heap size is 450 Kb, which leaves some space for the operating system and other applications.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 3 Click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">OK</font>'''</span>. The Restart Needed message ([FAQMain.backup.html#1052931 Figure 2]) appears.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">
+
The maximum heap size should not exceed the amount of RAM installed on the computer. For example, if the computer has 512 Kb of RAM, a good number for the maximum heap size is 450 Kb, which leaves some space for the operating system and other applications.<br />
 +
3 Click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">OK</font>'''</span>. The Restart Needed message (Figure 2) appears.<br />
  
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"
|+ <div style="font-style: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 2. Restart Needed message<br /></font>'''</div>
+
|+ '''Figure 2. Restart Needed message'''
 
|-
 
|-
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
 
|
 
|
 
[[Image:messageRestartNeeded.jpg]]
 
[[Image:messageRestartNeeded.jpg]]
|}<br clear="all" /><br /></font></div>
 
 
|}
 
|}
 
+
4 Do one of the following:<br />To close and restart MIPAV immediately, click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Yes</font>'''</span>. MIPAV closes. In a moment, MIPAV starts again, and the memory changes take effect.<br />To postpone restarting MIPAV, click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">No</font>'''</span>. The Restart Needed dialog box closes.<br />
<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 4 Do one of the following:<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 36pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  To close and restart MIPAV immediately, click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Yes</font>'''</span>. MIPAV closes. In a moment, MIPAV starts again, and the memory changes take effect.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 36pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000">  To postpone restarting MIPAV, click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">No</font>'''</span>. The Restart Needed dialog box closes.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 12pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000"><br clear="all" />
+
  
 
{| align="left"
 
{| align="left"
Line 86: Line 32:
 
|}
 
|}
  
<br clear="all" /></font></span><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Note:</font>'''</span><span style="font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000"> </font></span>If you click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">No</font>'''</span>, the memory settings for MIPAV do <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">not</font>'''</span> change. To make the settings take effect, you must close and restart MIPAV.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline"><u><font color="#ff1621"> [FAQMain.backup.html#998290 [[Image:FAQMain.backup22.gif]] Back to Questions]<br /></font></u></div>
+
If you click <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">No</font>'''</span>, the memory settings for MIPAV do <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">not</font>'''</span> change. To make the settings take effect, you must close and restart MIPAV.<br />
  
 
=== How much memory does MIPAV require to run? ===
 
=== How much memory does MIPAV require to run? ===
Line 92: Line 38:
 
MIPAV requires a base of at least 10 Mb of random access memory (RAM). However, to correctly display image files and to quantify the data, you need to allocate more memory, disk swap space, or install additional memory beyond this base. Each time MIPAV is installed, it always defaults to 100 Mb.
 
MIPAV requires a base of at least 10 Mb of random access memory (RAM). However, to correctly display image files and to quantify the data, you need to allocate more memory, disk swap space, or install additional memory beyond this base. Each time MIPAV is installed, it always defaults to 100 Mb.
  
<div style="font-style: normal; font-weight: normal; margin-bottom: 12pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000"><br clear="all" /> {| align="left" | [[Image:FAQMain.backup7.gif]] |} <br clear="all" />Important</font>'''</span><span style="font-style: normal; font-weight: normal; text-decoration: none; text-transform: none; vertical-align: baseline"><font color="#000000"><nowiki>:</nowiki><br clear="all" />
+
{| align="left"  
 +
| [[Image:FAQMain.backup7.gif]]  
 +
|}  
  
 
{| align="left"
 
{| align="left"
Line 99: Line 47:
 
|}
 
|}
  
<br clear="all" /></font></span>If you reinstall MIPAV, be sure to reset the memory allocation. <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline"><u><font color="#ff1621"> [FAQMain.backup.html#998290 [[Image:FAQMain.backup18.gif]] Back to Questions]<br /></font></u></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div>
 
  
 
=== What affects memory requirements? ===
 
=== What affects memory requirements? ===
Line 111: Line 58:
 
<div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To determine the amount of additional memory needed<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 1 Multiply the size of the largest image file that you want to process by 10. <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 2 Multiply the results by the number of image files that you want to display simultaneously.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 3 Add this amount to the 10-Mb base memory to result in the total amount of memory typically needed.`<br /></font></div>
 
<div style="font-style: normal; margin-bottom: 6pt; margin-left: 0pt; margin-right: 0pt; margin-top: 14pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> To determine the amount of additional memory needed<br /></font>'''</div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 1 Multiply the size of the largest image file that you want to process by 10. <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 2 Multiply the results by the number of image files that you want to display simultaneously.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 14pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: -18pt; text-transform: none; vertical-align: baseline"><font color="#000000"> 3 Add this amount to the 10-Mb base memory to result in the total amount of memory typically needed.`<br /></font></div>
  
==== <br clear="all" /> {| align="left" | [[Image:FAQMain.backup13.gif]] |} <br clear="all" />Example 1 ====
+
==== Example 1 ====
  
 
If an image file is 2 Mb and you only want to display one image file at a time, you must allocate an additional 20 Mb of RAM to the base memory of 10 Mb to result in a memory requirement of 30 Mb.
 
If an image file is 2 Mb and you only want to display one image file at a time, you must allocate an additional 20 Mb of RAM to the base memory of 10 Mb to result in a memory requirement of 30 Mb.
Line 117: Line 64:
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Mb Size of image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> x 10 <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  20 Mb Memory required for displaying and processing 1 image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  10 Mb Base memory required for running MIPAV<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  30 Mb Total memory required<br /></font></div>
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Mb Size of image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> x 10 <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  20 Mb Memory required for displaying and processing 1 image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  10 Mb Base memory required for running MIPAV<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  30 Mb Total memory required<br /></font></div>
  
==== <br clear="all" /> {| align="left" | [[Image:FAQMain.backup15.gif]] |} <br clear="all" />Example 2 ====
+
==== Example 2 ====
  
 
If the largest size image file is 2 Mb and you want to display 3 image files simultaneously, multiply 2 Mb by 10. Then multiply that sum by 3. Add that total to the base memory of 10 Mb to yield a memory requirement of 70 Mb.
 
If the largest size image file is 2 Mb and you want to display 3 image files simultaneously, multiply 2 Mb by 10. Then multiply that sum by 3. Add that total to the base memory of 10 Mb to yield a memory requirement of 70 Mb.
  
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Mb Largest size image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> x 10 <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  20 Mb Memory required for displaying 1 image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> x 3 Number of images to display and process simultaneously<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  60 Mb Memory required to display 3 image files<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  10 Mb Base memory required for running MIPAV<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  70 Mb Total memory required<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline"><u><font color="#ff1621"> [FAQMain.backup.html#998290 [[Image:FAQMain.backup3.gif]] ][FAQMain.backup.html#998290  Back to Questions]<br /></font></u></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div>
+
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  2 Mb Largest size image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> x 10 <br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  20 Mb Memory required for displaying 1 image file<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> x 3 Number of images to display and process simultaneously<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  60 Mb Memory required to display 3 image files<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  10 Mb Base memory required for running MIPAV<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <nowiki>------</nowiki><br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 18pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000">  70 Mb Total memory required<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline"><u><font color="#ff1621">  
  
 
=== How do I determine how much memory is currently being used? ===
 
=== How do I determine how much memory is currently being used? ===
  
In the MIPAV window, select <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help &gt; Memory Usage</font>'''</span>. The Memory Monitor dialog box ([FAQMain.backup.html#1041395 Figure 3]) appears.
+
In the MIPAV window, select <span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Help &gt; Memory Usage</font>'''</span>. The Memory Monitor dialog box (Figure 3]) appears.
  
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"
|+ <div style="font-style: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline">'''<font color="#000000"> Figure 3. Memory Monitor dialog box<br /></font>'''</div>
+
|+ '''Figure 3. Memory Monitor dialog box'''
 
|-
 
|-
|
 
<div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br clear="all" />{| align="center"
 
 
|
 
|
 
[[Image:dialogboxMemoryMonitor.jpg]]
 
[[Image:dialogboxMemoryMonitor.jpg]]
|}<br clear="all" /><br /></font></div>
 
 
|}
 
|}
  
Line 146: Line 90:
 
|}
 
|}
  
<br clear="all" /></font></span><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Note: </font>'''</span>You can leave this window open if you want to constantly monitor your memory resources.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline"><u><font color="#ff1621"> [FAQMain.backup.html#998290 [[Image:FAQMain.backup6.gif]] ][FAQMain.backup.html#998290  Back to Questions]<br /></font></u></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-decoration: none; text-indent: 0pt; text-transform: none; vertical-align: baseline"><font color="#000000"> <br /></font></div>
+
<br clear="all" /></font></span><span style="font-style: normal; text-decoration: none; text-transform: none; vertical-align: baseline">'''<font color="#000000">Note: </font>'''</span>You can leave this window open if you want to constantly monitor your memory resources.<br /></font></div><div style="font-style: normal; font-weight: normal; margin-bottom: 0pt; margin-left: 0pt; margin-right: 0pt; margin-top: 0pt; text-align: left; text-indent: 0pt; text-transform: none; vertical-align: baseline"><u><font color="#ff1621">  
  
 
=== How do I free memory? ===
 
=== How do I free memory? ===

Revision as of 16:15, 9 March 2012

How do I allocate more memory for MIPAV?

1 Select Help > Memory Allocation in the MIPAV window. The Change Java.Runtime Memory Allocation dialog box (Figure 1) opens.
</font></div>

Figure 1. Change Java.Runtime Memory Allocation dialog box

File:DialogboxMemoryAllocation.jpg

2 Change the Maximum heap size so that it reflects the maximum amount of desired memory to be allocated.
If additional memory is needed, MIPAV allocates it until the memory reaches the maximum heap size you entered.

File:FAQMain.backup5.gif

The maximum heap size should not exceed the amount of RAM installed on the computer. For example, if the computer has 512 Kb of RAM, a good number for the maximum heap size is 450 Kb, which leaves some space for the operating system and other applications.
3 Click OK. The Restart Needed message (Figure 2) appears.

Figure 2. Restart Needed message

File:MessageRestartNeeded.jpg

4 Do one of the following:
To close and restart MIPAV immediately, click Yes. MIPAV closes. In a moment, MIPAV starts again, and the memory changes take effect.
To postpone restarting MIPAV, click No. The Restart Needed dialog box closes.

File:FAQMain.backup36.gif

If you click No, the memory settings for MIPAV do not change. To make the settings take effect, you must close and restart MIPAV.

How much memory does MIPAV require to run?

MIPAV requires a base of at least 10 Mb of random access memory (RAM). However, to correctly display image files and to quantify the data, you need to allocate more memory, disk swap space, or install additional memory beyond this base. Each time MIPAV is installed, it always defaults to 100 Mb.

File:FAQMain.backup7.gif

File:FAQMain.backup9.gif


What affects memory requirements?

Memory requirements fluctuate depending on the size and number of image files that are open at the same time. Factors affecting memory requirements are the following:

Size of image files: The physical size of image files (i.e., 1.2 Mb)
Number of image files opened: Working on more than one image file at the same time

{| align="left" | File:FAQMain.backup11.gif |}
Note:
Java provides a method called Garbage Collector that clears all unnecessarily reserved memory. Generally, the software does this automatically, when free memory becomes very limited. However, you can run the Garbage Collector at any time to free memory (refer to [FAQMain.backup.html#1002914 "How do I free memory?" ]).
[FAQMain.backup.html#998290 File:FAQMain.backupa.gif ][FAQMain.backup.html#998290 Back to Questions]

How do I determine the amount of additional memory needed?

To determine the amount of additional memory needed
1 Multiply the size of the largest image file that you want to process by 10.
2 Multiply the results by the number of image files that you want to display simultaneously.
3 Add this amount to the 10-Mb base memory to result in the total amount of memory typically needed.`

Example 1

If an image file is 2 Mb and you only want to display one image file at a time, you must allocate an additional 20 Mb of RAM to the base memory of 10 Mb to result in a memory requirement of 30 Mb.


2 Mb Size of image file
x 10
------
20 Mb Memory required for displaying and processing 1 image file
10 Mb Base memory required for running MIPAV
------
30 Mb Total memory required

Example 2

If the largest size image file is 2 Mb and you want to display 3 image files simultaneously, multiply 2 Mb by 10. Then multiply that sum by 3. Add that total to the base memory of 10 Mb to yield a memory requirement of 70 Mb.

2 Mb Largest size image file
x 10
------
20 Mb Memory required for displaying 1 image file
x 3 Number of images to display and process simultaneously
------
60 Mb Memory required to display 3 image files
10 Mb Base memory required for running MIPAV
------
70 Mb Total memory required

How do I determine how much memory is currently being used?

In the MIPAV window, select Help > Memory Usage. The Memory Monitor dialog box (Figure 3]) appears.

Figure 3. Memory Monitor dialog box

File:DialogboxMemoryMonitor.jpg

The Memory Monitor dialog box shows how much memory is allocated and the amount of memory that is being used. The graph displays a pictorial representation of the ratio of allocated memory and amount of memory used. It shows the memory usage during the past 3 minutes and 45 seconds.


File:FAQMain.backup17.gif


Note: You can leave this window open if you want to constantly monitor your memory resources.
<u>

How do I free memory?

The Garbage Collector allows you to delete unnecessarily reserved memory. To free memory, do the following procedure periodically:

1 Select Help > Memory Usage in the MIPAV window. The Memory Monitor dialog box ([FAQMain.backup.html#1041395 Figure 3]) appears.
2 Click Free Memory. The system clears all unnecessarily reserved memory.
<u> [FAQMain.backup.html#998290 File:FAQMain.backup8.gif ][FAQMain.backup.html#998290 Back to Questions]
</u>