Is there a maximum number you can set Xmx to when trying to increase jvm memory?

后端 未结 4 581
误落风尘
误落风尘 2020-12-05 13:00

Is there a max. size you can set Xmx to? I set it to 1024m and eclipse opens ok. When I set it above 1024, eclipse doesn\'t open and I get the error \"jvm terminated. Exit c

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 13:29

    I think that it's around 2GB. While the answer by Pete Kirkham is very interesting and probably holds truth, I have allocated upwards of 3GB without error, however it did not use 3GB in practice. That might explain why you were able to allocate 2.5 GB on 2GB RAM with no swap space. In practice, it wasn't using 2.5GB.

提交回复
热议问题