weka:memory not enough,please load a smaller dataset or need larger heap size

本文讨论了在使用Weka进行数据挖掘时遇到内存不足错误的解决方案,包括调整Java堆大小、运行特定配置文件及理解内存限制背后的多因素。提供了解决问题的两种方法,并解释了操作系统的内存限制不仅仅局限于操作系统本身。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述
displayed message:
Not enough memory. Please load a smaller dataset or use larger heap size.
- initial JVM size:   15.5MB
- total memory used:  989.9MB
- max. memory avail.: 989.9MB

Note:
The Java heap size can be specified with the -Xmx option.
E.g., to use 128MB as heap size, the command line looks like this:
   java -Xmx128m -classpath ...
This does NOT work in the SimpleCLI, the java command refers
to the one with which Weka is started.
方法一
C:\software\java -Xmx1024m -jar weka.jar
方法二:
RunWeka.ini
maxheap=1024m

再学习:
Your HEAP size limitation is not about your Operating System only. But your heap size may be limited by following factors.
  • 32 bit and 64 bit OS
  • Other programs running 
  • Your maximum physical RAM available in your machine

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值