docker启动elasticsearch报错OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in
docker启动镜像elasticsearch报错使用docker log CONTAINER ID查看日志发现:OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release我的启动方式是
docker启动镜像elasticsearch报错
使用docker log CONTAINER ID查看日志发现:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release
我的启动方式是:docker run -d -e “ES_JAVA_OPTS=-Xms512m -Xmx512m” --name es2 -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” bdaab402b220
这里的双引号是英文的,我这个编辑器打不出来,请大家注意下
网上看了很多解决方案,我这边是jdk1.8的,本来准备换成1.9的,后面改了下启动参数内存大小,就就解决了:docker run -d -e “ES_JAVA_OPTS=-Xms64m -Xmx251m” --name es2 -p 9200:9200 -p 9300:9300 -e “discovery.type=single-node” bdaab402b220
启动成功
希望对您有帮助
更多推荐
所有评论(0)