java - Minecraft forge automatically sets _JAVA_OPTIONS environment variable
问题描述
I just started making minecraft mods and everything went fine until I ran the program (minecraft forge 1.12.2
). It said:
Initial heap size set to a larger value than the maximum heap size can
after that: picked up _JAVA_OPTIONS: -Xmx512M
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release.
When I checked my environment vraiables, I found _JAVA_OPTIONS
and deleted it, but the problem remains, What should I do?
I am on a Windows 10 computer and have 8 GB ram.
解决方案
Initial heap size set to a larger value than the maximum heap size can
表示最大堆大小小于初始堆大小。
要解决此问题,只需添加 _JAVA_OPTIONS 并将其设置为
-Xmx512M -Xms512M
.
-Xms512M
只需将初始堆大小设置为 512mb。
推荐阅读
- ios - 如果一个发布者没有产生任何值,如何让 CombineLatest3 返回结果?
- android - 为什么 Android Studio 中的 Image Asset 工具不会为 xxxhdpi 文件夹生成 PNG 文件?
- uwp - 如何使用 Windows Cloud Sync Engine API 支持删除?
- java - 需要从使用 java 3.12.0 驱动程序的 java 应用程序中的 mongoDB Atlas 中获取具有相同 first_name 的客户的 customerID 列表
- python - 为什么我的表单没有保存到管理数据库?
- python - 没有响应和程序冻结
- javascript - 无论值如何,如何从选择器中排除具有属性的元素
- c# - 清理验证码图像,然后使用 Tesseract OCR (.NET)
- c++ - 向没有 SFINAE 的类模板添加专门的方法
- regex - 使用正则表达式应用过滤器和截断数据