java.lang.OutOfMemoryError: Java heap space

前端 未结 11 1267
温柔的废话
温柔的废话 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:53

    To increase the heap size you can use the -Xmx argument when starting Java; e.g.

    -Xmx256M
    

提交回复
热议问题