Could not reserve enough space for object heap

后端 未结 26 1346
余生分开走
余生分开走 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 07:00

    I know there are a lot of answers here already, but none of them helped me. In the end I opened the file /etc/elasticsearch/jvm.options and changed:

    -Xms2G
    -Xmx2G
    

    to

    -Xms256M
    -Xmx256M
    

    That solved it for me. Hopefully this helps someone else here.

提交回复
热议问题