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; error='Cannot allocate memory' (errno=12)
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.conf vm.max_map_count = 262144