Difference between revisions of "Setting Heap Size"

From Protege Wiki
Jump to: navigation, search
(pasted content from cim3 wiki and removed purple numbers, etc.)
 
m
Line 3: Line 3:
 
There are several ways of setting the heap size depending on how you run Protege.
 
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:
+
*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: <code>lax.nl.java.option.java.heap.size.max=100000000</code>By default the Protege.lax file specifies a heap of 100MB.
 
 
<code>lax.nl.java.option.java.heap.size.max=100000000</code>
 
 
 
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 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.

Revision as of 14:23, August 9, 2007

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.