Setting Heap Size

From Protege Wiki
Revision as of 15:23, August 9, 2007 by JenniferVendetti (talk | contribs) (pasted content from cim3 wiki and removed purple numbers, etc.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setting Heap Size

There are several ways of setting the heap size depending on how you run Protege.

  • If you start Protege on a windows machine by double clicking an icon, you need to update the Protege.lax file. To set the maximum heap size used by Protege using the LAX file, edit the following line in the Protege.lax file in the Protege installation directory:

lax.nl.java.option.java.heap.size.max=100000000

By default the Protege.lax file specifies a heap of 100MB.

  • If you run Protege on a Mac by double clicking an icon, you need to edit the Info.plist file that is hidden within that icon. Right click the icon (or ^-click for one button mouses) and click "show package contents". A new finder window will come up. Double click "Contents" and then "Info.plist". Traverse down the tree as follows: "Root" --> "Java" --> "VMOptions". In VMOptions edit the -Xmx line to indicate the correct memory usage.
  • If you run Protege on a Mac by double clicking the applescript file then you need to modify the -Xmx line in the script.
  • If you run Protege from the java command line then you need to pass in the heap size with the -XmxN? command line switch.