=== Top of the Swiki === Attachments ===

FAQ: Assigning memory to the VM at startup


Windows

On Windows you can start Squeak from the command line using the switch

-memory: MB

[note the space] e.g., if you start Squeak by

Squeak -memory: 64 Squeak.image

you'll have 64MB of memory available.


Hint:
You may use a shortcut on your desktop and do something like:

D:\develop\squeak\v2_6\Squeak.exe -memory: 128 D:\develop\squeak\v2_6\2.6.image

Or just

D:\develop\squeak\v2_6\Squeak.exe -memory: 128 2.6.image

since the image and the VM are in the same directory.

For more information on the Windows VM's command-line switches, see VmCommandLineOptions.



Macintosh

On the Mac, you can simply edit the amount of memory by doing a "Get Info" on the VM, and increasing the memory allotment in the dialog.



Unix/Linux

Use the switch "-memory 64m", for 64 Megs. A complete startup command might look like:

SqueakVM-2.7-SGI-irix-6.x -memory 64m Squeak2.7.image

Also, you can get the same effect by setting the environment variable SQUEAK_MEMORY.