问题描述:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

问题原因:
程序中对象引用过多导致堆空间不足,导致内存溢出

解决方案:
(增大Java虚拟机的内存空间)
打开Eclipse,选择“Run” - “Run Configurations” - “(x)=Arguments”,VM arguments栏中填写 -Xmx800m
eclipse启动参数 java.lang.OutOfMemoryError: Java heap space

相关文章:

  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-28
  • 2021-12-28
  • 2022-12-23
  • 2021-08-09
相关资源
相似解决方案