FAQ: Understanding Memory

From MIPAV
Revision as of 16:00, 9 March 2012 by Angelfish100 (Talk)

(diff) <previousrevision> | Latest revision (diff) | <nextrevision> (diff)
Jump to: navigation, search
[FAQMain.backup.html#1050783 Understanding Memory]

[FAQMain.backup.html#999104 How do I allocate more memory for MIPAV?]

[FAQMain.backup.html#1000586 How much memory does MIPAV require to run?]

[FAQMain.backup.html#1000586 What affects memory requirements?]

[FAQMain.backup.html#1002409 How do I determine the amount of additional memory needed?]

[FAQMain.backup.html#1002837 How do I determine how much memory is currently being used?]

[FAQMain.backup.html#1002914 How do I free memory?]

[FAQMain.backup.html#1013441 Customizing MIPAV]

[FAQMain.backup.html#1003009 How do I show or hide the splash screen?]

[FAQMain.backup.html#1024973 How do I show or hide toolbars?]

[FAQMain.backup.html#1047638 How can I load images from a CD on my Mac?]

[FAQMain.backup.html#1036815 How do I save a history of actions on images?]

[FAQMain.backup.html#1035970 How do I set up default file types to display or save?]

[FAQMain.backup.html#1039967 Understanding Image Basics]

[FAQMain.backup.html#1039970 How do I save images in a different format?]

[FAQMain.backup.html#1011617 How do I combine two images for alphablending?]

Understanding Changes in MIPAV

[FAQMain.backup.html#1046141 Why doesn't MIPAV open my XML files?]

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 ([FAQMain.backup.html#1041379 Figure 1]) opens.
Figure 1. Change Java.Runtime Memory Allocation dialog box


{| align="center"

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


Note: 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 ([FAQMain.backup.html#1052931 Figure 2]) appears.
Figure 2. Restart Needed message


{| align="center"

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


Note: If you click No, the memory settings for MIPAV do not change. To make the settings take effect, you must close and restart MIPAV.
[FAQMain.backup.html#998290 File:FAQMain.backup22.gif Back to Questions]

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.


{| align="left" | File:FAQMain.backup7.gif |}
Important
:

File:FAQMain.backup9.gif


If you reinstall MIPAV, be sure to reset the memory allocation.
[FAQMain.backup.html#998290 File:FAQMain.backup18.gif Back to Questions]

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.`


{| align="left" | File:FAQMain.backup13.gif |}
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


{| align="left" | File:FAQMain.backup15.gif |}
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
[FAQMain.backup.html#998290 File:FAQMain.backup3.gif ][FAQMain.backup.html#998290 Back to Questions]

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

In the MIPAV window, select Help > Memory Usage. The Memory Monitor dialog box ([FAQMain.backup.html#1041395 Figure 3]) appears.

Figure 3. Memory Monitor dialog box


{| align="center"

File:DialogboxMemoryMonitor.jpg