如何在Google Colab笔记本中设置Java的最大堆空间?

huangapple 未分类评论43阅读模式
英文:

How do i set java maximum heap space in google colab notebook?

问题

我了解您需要使用xmx来设置最大堆大小。但在colab笔记本中如何操作呢?我尝试过使用!java -Xmx8g,这样正确吗?

英文:

I understand that you have to use xmx to set maximum heap size. But how do you do this in colab notebook.

I am trying !java -Xmx8g. Is this right?

答案1

得分: -1

如果您正在使用python-weak-wrapper,请使用以下代码:

jvm.start(max_heap_size="512m")

来源:https://fracpete.github.io/python-weka-wrapper3/api.html

英文:

If you are using python-weak-wrapper, use this:

jvm.start(max_heap_size="512m")

Source: https://fracpete.github.io/python-weka-wrapper3/api.html

huangapple
  • 本文由 发表于 2020年4月10日 15:19:37
  • 转载请务必保留本文链接:https://java.coder-hub.com/61135661.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定