java.lang.OutOfMemoryError: Java heap space

前端 未结 11 1249
温柔的废话
温柔的废话 2020-11-22 08:01

I am getting the following error on execution of a multi-threading program

java.lang.OutOfMemoryError: Java heap space

The above error occu

11条回答
  •  梦谈多话
    2020-11-22 08:35

    No, I think you are thinking of stack space. Heap space is occupied by objects. The way to increase it is -Xmx256m, replacing the 256 with the amount you need on the command line.

提交回复
热议问题