Weka out of memory crash on OS X

26 Sep 2012

Using some bigger dataset makes the machine learning program Weka crash due to lack of memory.

To increase the memory limit Weka is allowed to use before it crashes edit the file

/Applications/weka-3-7-5.app/Contentsi/Info.plist

(for the version number you have on your Weka install)

Change the line

<string>-Xmx256M</string>

To

<string>-Xmx2g</string>

The 2g means that it allows Weka to use 2GB memory, you can change this to what best suits you.

blog comments powered by Disqus