• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

luffylee

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

Weka加载大数据量内存不足时不同平台的解决方法

ubuntu的解决方法

你只要在启动weka的时候,加上如下命令即可:

java -Xmx400M -jar weka.jar

From--

I hit the JAVA OutOfMemory exception when I'm dealing with a largedataset. It seems that JAVA uses a default limit of 64Mb for itsmemory usage.  To increase the limit, you can try the JAVA -Xmx option, e.g.   java -Xmx400M -jar weka.jarThis increases the limit to 400 Mb (my system has 512Mb).  You shouldset your limit depending on the amount of memory you have available.See this link for more

如果你和我一样设置了脚本,就将weka脚本修改为

#! /bin/bash
java -Xmx400M -classpath $CLASSPATH:weka.jar:libsvm.jar weka.gui.GUIChooser

这样,就是400m了

 

windows方法

用文本编辑器打开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

posted on 2012-02-24 10:38  luffylee  阅读(1853)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3