【发布时间】:2016-05-05 00:35:12
【问题描述】:
我正在尝试在 Linux VM 中安装弹性搜索,但尽管安装了 java,但无法启动该服务。 elasticsearch 脚本运行时收到以下消息。
[xxxx@ABCWCW0ASMGNJ01A bin]$ java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (novell-2.5.1.2.el6_5-x86_64 u65-b17)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
[xxxx@ABCWCW0ASMGNJ01A bin]$ ./elasticsearch
Error occurred during initialization of VM
Too small initial heap for new size specified
我从弹性搜索网站下载了 2.3.2。在最初的谷歌之后,我确实在 bash_profile 中设置了 ES_HEAP_SIZE=1g 但仍然没有运气。你能解释一下可能是什么问题吗?
谢谢
【问题讨论】:
-
vm的内存信息是什么?
-
大约有 32G。只是为了给更多的指点,我在WINDOWS机器上试了一下,效果很好。
-
你有 32gb 内存吗?
-
是的。 [xxxx@ABCWCW0ASMGNJ01A bin]$ free -m -t total used free shared buffers cached Mem: 32106 20504 11602 0 571 4702 -/+ buffers/cache: 15230 16876 Swap: 8191 69 8122 Total: 40298 20573 19725
标签: elasticsearch