Increase heap size in java for weka

后端 未结 17 1318
天命终不由人
天命终不由人 2020-12-14 08:27

I\'m trying to increase the heap size in java for weka which keeps crashing. I used the suggested line:

> java -Xmx500m -classpath

but

17条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-14 09:05

    Omit the -classpath option. Use just -Xmx500m option.

    So, instead of just:

    java weka.core.Instances data/soybean.arff
    

    you do:

    java -Xmx500m weka.core.Instances data/soybean.arff
    

    If you run weka via some script (RunWeka.bat for example), then you need to modify that script (with some text editor like notepad).

提交回复
热议问题