Difference between revisions of "ChangingTheHeapSize"
(New page: =Adding More Memory to Protege 4= '''In Progress''' == Non-OS X Operating Systems== ==OS X== ===Editting the Info.plist=== Navigate to the Protege 4 application in the finder and ...) |
(→Non-OS X Operating Systems) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
=Adding More Memory to Protege 4= | =Adding More Memory to Protege 4= | ||
Line 8: | Line 7: | ||
== Non-OS X Operating Systems== | == Non-OS X Operating Systems== | ||
+ | Edit the Protege.lax file with a text editor and change the initial and maximum heap size. Unfortunately you can only do this in bytes so you need to track | ||
+ | the number of zeros: | ||
+ | <pre> | ||
+ | # LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.INITIAL | ||
+ | # ----------------------------------------- | ||
+ | # initial heap size | ||
+ | |||
+ | lax.nl.java.option.java.heap.size.initial=800000000 | ||
+ | |||
+ | |||
+ | # LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX | ||
+ | # ------------------------------------- | ||
+ | # maximum heap size | ||
+ | |||
+ | lax.nl.java.option.java.heap.size.max=800000000 | ||
+ | </pre> | ||
==OS X== | ==OS X== | ||
Line 17: | Line 32: | ||
[[Image:AddingMoreMemoryShowPackageContents.png|Show Package Contents]] | [[Image:AddingMoreMemoryShowPackageContents.png|Show Package Contents]] | ||
+ | A new finder window will come up and in that window navigate to Contents and edit the Info.plist file in a text editor (alternatively you can use the os x plist editor by double-clicking if it is installed). Near the bottom of this file there are the lines | ||
+ | <pre> | ||
+ | <key>VMOptions</key> | ||
+ | <array> | ||
+ | <string>-Xms200M</string> | ||
+ | <string>-Xmx200M</string> | ||
+ | <string>-Dosgi.clean=true</string> | ||
+ | </array> | ||
+ | </pre> | ||
+ | Modify the ''-Xmx'' and (optionally) the ''-Xms'' lines to the desired amount of memory | ||
+ | <pre> | ||
+ | <key>VMOptions</key> | ||
+ | <array> | ||
+ | <string>-Xms800M</string> | ||
+ | <string>-Xmx800M</string> | ||
+ | <string>-Dosgi.clean=true</string> | ||
+ | </array> | ||
+ | </pre> | ||
==Users with the zip file distribution== | ==Users with the zip file distribution== | ||
+ | |||
+ | Edit the run.sh (or for windows users the run.bat) file and modify the ''-Xmx'' line: | ||
+ | <pre> | ||
+ | java ${CMD_OPTIONS} -Xmx800M -Dosgi.clean=true -jar org.eclipse.osgi.jar | ||
+ | </pre> |
Latest revision as of 06:00, August 20, 2008
Contents
Adding More Memory to Protege 4
In Progress
Non-OS X Operating Systems
Edit the Protege.lax file with a text editor and change the initial and maximum heap size. Unfortunately you can only do this in bytes so you need to track the number of zeros:
# LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.INITIAL # ----------------------------------------- # initial heap size lax.nl.java.option.java.heap.size.initial=800000000 # LAX.NL.JAVA.OPTION.JAVA.HEAP.SIZE.MAX # ------------------------------------- # maximum heap size lax.nl.java.option.java.heap.size.max=800000000
OS X
Editting the Info.plist
Navigate to the Protege 4 application in the finder and right click on the Protege 4 owl editor application. Select "Show Package Contents".
A new finder window will come up and in that window navigate to Contents and edit the Info.plist file in a text editor (alternatively you can use the os x plist editor by double-clicking if it is installed). Near the bottom of this file there are the lines
<key>VMOptions</key> <array> <string>-Xms200M</string> <string>-Xmx200M</string> <string>-Dosgi.clean=true</string> </array>
Modify the -Xmx and (optionally) the -Xms lines to the desired amount of memory
<key>VMOptions</key> <array> <string>-Xms800M</string> <string>-Xmx800M</string> <string>-Dosgi.clean=true</string> </array>
Users with the zip file distribution
Edit the run.sh (or for windows users the run.bat) file and modify the -Xmx line:
java ${CMD_OPTIONS} -Xmx800M -Dosgi.clean=true -jar org.eclipse.osgi.jar