Open in TheBrain

Java Memory Usage

<p>By default, TheBrain uses a maximum of 192 MB of memory.</p>

<p>

In some circumstances TheBrain requires more memory then Java allocates, which may cause PB to hang during very memory intensive tasks (in the attached forum thread, the issue was a hang during merging a very large brain).&nbsp;</p>

<p>

To increase the maximum memory TheBrain can use:</p>

<p>

<b>Windows</b>:</p>

<ol>

<li>Close TheBrain</li>

<li>Create a text file and put the following text into it (there must be a linefeed at the end of the file:

-Xmx320m

</li>

<li>Name the text file TheBrain.vmoptions, and place the file in the same location as the TheBrain.jar file. For Windows users, this file is in the Program Files folder. For Mac users it's in the TheBrain application package, under Contents > Resources> app.</li>

<li>Restart TheBrain.</li>

</ol>

<p>&nbsp;

<b>OS X&nbsp;</b>

&nbsp;</p>

<ol>

<li>Close TheBrain</li>

<li>In the applications folder, right-click TheBrain.app and choose Show Package Contents</li>

<li>Make a copy of the Info.plist</li>

<li>Open the Info.plst in TextEdit</li>

<li>Modify the following text:

<img src="/9f61024d-5bef-5c6a-881b-09145e352f56.png"/>

to

<img src="/57906fa2-ae3a-5ee1-80bb-bfed731d6495.png"/></li>

<li>Save and close the file.</li>

<li>Restart TheBrain.</li>

</ol>

<p>OS X Steps above provided by <a href="http://forums.thebrain.com/post/Extend-Java-VM-Memory-6174049?trail=#5">Pinky</a>.</p>

<p>

The process above will set the maximum usage to 320MB. Depending on the size of the brain and the task, more may be required. Be sure to rename the file to revert to the normal memory settings when the task is completed.</p>

Attachments