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

后端 未结 4 571
误落风尘
误落风尘 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条回答
  •  萌比男神i
    2020-12-05 13:28

    Have a look at this for some common errors in setting the java heap. You've probably set the heap size to a larger value than your computer's physical memory.

    You should avoid solving this problem by increasing the heap size. Instead, you should profile your application to see where you spend such a large amount of memory.

提交回复
热议问题