Increase heap size in java for weka

后端 未结 17 1334
天命终不由人
天命终不由人 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:09

    What I found was the actual issue was in the file 'RunWeka.ini' in '\Program Files (x86)\Weka-3-6'. I opened it with notepad and in the middle of the file there is a line 'maxheap = 512m'.

    I changed the line to read 'maxheap=2000m', saved the file and reloaded weka and this fixed my problems.

    I'm not sure if this is the correct way to do it or not but it worked for me.

提交回复
热议问题