英文:
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
专注分享java语言的经验与见解,让所有开发者获益!
评论