java - 如何在 google colab notebook 中设置 java 最大堆空间?
问题描述
我知道您必须使用 xx 来设置最大堆大小。但是你如何在 colab notebook 中做到这一点。
我正在尝试!java -Xmx8g。这是正确的吗?
解决方案
如果您使用的是python-weak-wrapper,请使用以下命令:
jvm.start(max_heap_size="512m")
来源:https ://fracpete.github.io/python-weka-wrapper3/api.html
推荐阅读
- javascript - 如何集成外部脚本进行反应,例如 PayPal Smart Checkout?
- c# - 在 ASP.NET Core SignalR 中管理 DbContext 生命周期
- php - 如何在 MySQL 中存储基于时间的 OTP 密钥
- sql - Explode and Count all items from 2 dates column
- javascript - 找不到嵌套命令
- azure - 在 Azure 搜索中索引视图时如何从索引中删除数据?
- reactjs - 如何使用 react-router 执行多个可选参数?
- c# - 扩展(替代)存储库设计模式?
- angular - ag-grid 企业设置过滤器“(空白)”-绑定不起作用
- java - 解释逐步执行递归代码以在Java中将十进制转换为二进制