OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will l

#腾讯云ECS主机docker安装elasticsearch 7.1.1版本启动报错解决

1.主机系统

CentOS Linux release 7.9.2009 (Core)

2.镜像名称版本

elasticsearch 7.1.1

3.报错信息

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release

 

 4.解决方法

1.修改elastic/config/jvm.options配置文件中开始内存和结束内存的大小,是的Xmx > Xms 

原配置:

-Xms2g
-Xmx2g

修改后配置

-Xms1g
-Xmx2g

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will l

 

 5.重启es容器,报错消失

6.说明,这个报错在centos7.8和7.6上是没有的

上一篇:2021Android大厂面试真题,retrofit解析


下一篇:Kotlin Coroutine(协程): 四、+ Retrofit