ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

Apache Druid因historical缓存数据无法启动

Apache Druid因historical缓存数据无法启动 问题生产环境进行druid服务重启时发现overload middle- managerbrokercoordinatorroute服务都可以正常启动但是historical服务启动失败 失败错误如下错误信息Caused by: java.lang.RuntimeException: java.lang.OutOfMemoryError: unable to create new native thread Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00007ee213a7f000, 262144, 0) failed; errorCannot allocate memory (errno12) There is insufficient memory for the Java Runtime Environment to continue. Native memory allocation (mmap) failed to map 262144 bytes for committing reserved memory. #An error report file with more information is saved as:问题分析查看问题发现内存分配失败系统不足以分配这个内存解决方法根据Google 结果发现是Linux服务限制了内存的分配通过修改配置解决将参数调大【65536 -262144],启动成功vim /etc/security/limits.confvm.max_map_count 262144参考文档https://support.imply.io/hc/en-us/articles/360060443474-Historical-will-not-start-due-to-OOM-and-failed-to-map-errors-though-there-is-enough-heap-available-and-ulimit-is-set-very-high
返回列表