KETTLE,WEKA处理大数据量时JAVA虚拟机内存溢出的解决方法

KETTLE

 

Spoon.bat为例,其他组件和.sh操作类似

 

用文本编辑器打开Spoon.bat找到:

 

REM ******************************************************************

REM ** Set java runtime options                                     **

REM ** Change 256m to higher values in case you run out of memory.  **

REM ******************************************************************

 

set OPT=-Xmx1444m -cp %CLASSPATH% -Djava.library.path=libswt/win32/ -DKETTLE_HOME="%KETTLE_HOME%" -DKETTLE_REPOSITORY="%KETTLE_REPOSITORY%" -DKETTLE_USER="%

 

KETTLE_USER%" -DKETTLE_PASSWORD="%KETTLE_PASSWORD%" -DKETTLE_PLUGIN_PACKAGES="%KETTLE_PLUGIN_PACKAGES%"

 

修改这里的数字...-Xmx1444m...

我装的是jdk-1_5_0_14这里的1444m是极限了.大家可以在自己的机器上试验不同的数值.

 

 

 

WEKA(感谢网友:comcome84)

 

用文本编辑器打开RunWeka.ini找到:

 

# placeholders ("#bla#" in command gets replaced with content of key "bla")

# Note: "#wekajar#" gets replaced by the launcher class, since that jar gets

#       provided as parameter

maxheap=1444m

 

这里同样被我修改成1444m.

 

 

 

 

修改完成记得重新启动程序

posted on 2014-02-17 11:10  264073578  阅读(1605)  评论(0)    收藏  举报

导航