Why do we have to increase the Java Heap?

前端 未结 4 1044
死守一世寂寞
死守一世寂寞 2021-01-19 17:26

I know how to set the Java heap size in Tomcat and Eclipse. My question is why? Was there an arbitrary limit set on the initial heap back when Java was first introduced so

4条回答
  •  再見小時候
    2021-01-19 17:56

    I would think that it's good to be able to provide a limit so that if you have a memory issue it doesn't gobble up all the system memory leaving you with only a reboot option.

提交回复
热议问题