Increase heap size in java for weka(在 Java 中为 weka 增加堆大小)
问题描述
我正在尝试为不断崩溃的 weka 增加 Java 中的堆大小.我使用了建议的行:
I'm trying to increase the heap size in java for weka which keeps crashing. I used the suggested line:
> java -Xmx500m -classpath
但我收到以下错误:
-classpath requires class path specification
我不确定这意味着什么.有什么建议吗?
I'm not sure what this means. Any suggestions?
推荐答案
我发现实际问题出在 'Program Files (x86)Weka-3-6'
.我用记事本打开它,文件中间有一行'maxheap = 512m'
.
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'
.
我将行更改为读取 'maxheap=2000m'
,保存文件并重新加载 weka,这解决了我的问题.
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.
这篇关于在 Java 中为 weka 增加堆大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 Java 中为 weka 增加堆大小


- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01