Could not reserve enough space for object heap

后端 未结 26 1645
余生分开走
余生分开走 2020-11-22 05:59

I am getting the following exception repeatedly each time I try to run the program.

Error occurred during initialization of VM

Could not reserve e

26条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 06:50

    Sometimes it relates as

    $ sysctl vm.overcommit_memory
    vm.overcommit_memory = 2
    

    If you set it to:

    $ sysctl vm.overcommit_memory=0
    

    It should work.

提交回复
热议问题