我下载了ElasticSearch,运行bin/elasticsearch.bat
,它在我的本地计算机上运行。然后,我添加了elasticsearch文件夹到我的资料库,并更新了deploymentscript(deploy.cmd),加上几行:无法在Azure WebApp中启动ElasticSearch
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.
:
echo starting ElasticSearch...
elasticsearch-1.7.2\bin\elasticsearch.bat
echo ElasticSearch started!
推我的仓库到我的Azure的网站后,在日志中出现此错误
在我的WebApp的配置中打开了Java。所以有什么问题?为什么不能创建Java VM?
编辑:Could not reserve enough space for object heap
看起来像我有较少的内存,但我已经尝试过了3.5GB与RAM和该错误也出现 - ElasticSearch只是我的本地机器上使用155 MB RAM)
EDIT2: 经过一番尝试我得到一个新的错误日志:
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]
谢谢!我编辑了elasticsearch配置文件,以便它现在监听端口80(适用于本地计算机),但在我的WebApp部署中出现同样的错误。我已经在ES上使用了一个虚拟机,但是我想迁移到WebApp,因为我不想像VM那样拥有高维护。我将介绍一下Azure搜索,但我更喜欢WebApp中的ES。 – Munchkin
@Munchkin Azure WebApp包含IIS代理,用于Java的Tomcat或Jetty Servlet容器,以及WebJob作为没有http侦听器的后端任务。它不适合独立的服务流程。部署脚本仅用于将Web项目部署到Azure中,而不用于启动服务。因此,如果您不想为ES使用虚拟机,我建议您在Azure预览门户市场中免费使用Facetflow ES。感谢您的反馈意见。关于Azure上关于ES的任何问题,请随时通知我。 –