【发布时间】:2015-10-15 12:08:37
【问题描述】:
我下载了ElasticSearch,运行bin/elasticsearch.bat,它在我的本地机器上运行。然后我将 elasticsearch 文件夹添加到我的存储库并更新了部署脚本 (deploy.cmd),添加了以下几行:
echo starting ElasticSearch...
elasticsearch-1.7.2\bin\elasticsearch.bat
echo ElasticSearch started!
将我的存储库推送到我的 Azure 网站后,日志中出现此错误:
starting ElasticSearch...
Error occurred during initialization of VM
Error: Could not create the Java Virtual Machine.
Could not reserve enough space for object heap
Error: A fatal exception has occurred. Program will exit.
在我的 WebApp 的配置中打开了 Java。所以有什么问题?为什么无法创建 Java VM?
编辑:Could not reserve enough space for object heap 看起来我的 RAM 较少,但我已经尝试使用 3.5GB RAM 并且错误也发生了 - ElasticSearch 在我的本地计算机上仅使用 155 MB RAM)
编辑2: 经过一些尝试,我得到了一个新的错误日志:
starting ElasticSearch...
[2015-10-15 12:59:18,879][INFO ][node ] [Marsha Rosenberg] version[1.7.2], pid[3728], build[e43676b/2015-09-14T09:49:53Z]
[2015-10-15 12:59:18,879][INFO ][node ] [Marsha Rosenberg] initializing ...
[2015-10-15 12:59:19,273][INFO ][plugins ] [Marsha Rosenberg] loaded [], sites []
[2015-10-15 12:59:20,692][INFO ][env ] [Marsha Rosenberg] using [1] data paths, mounts [[Windows (D:)]], net usable_space [13.5gb], net total_space [32gb], types [NTFS]
[2015-10-15 12:59:28,869][INFO ][node ] [Marsha Rosenberg] initialized
[2015-10-15 12:59:28,869][INFO ][node ] [Marsha Rosenberg] starting ...
{1.7.2}: Startup Failed ...
- ChannelException[Failed to create a selector.]
IOException[Unable to establish loopback connection]
SocketException[Address family not supported by protocol family: bind]
【问题讨论】:
标签: java azure elasticsearch azure-web-app-service