MongoDB 在启动时安装简单的测试操作管理器 java.lang.OutOfMemoryError [英] MongoDB Install Simple Test Ops Manager java.lang.OutOfMemoryError on startup
问题描述
我刚刚安装了 MongoDB Ops Manager 的测试评估,并在启动备份 HTTP 服务器时出错:
I just installed a test evaluation of MongoDB Ops Manager and get an error on startup of the Backup HTTP server:
Migrate MMS data
Running migrations...[ OK ]
Start MMS server
Instance 0 starting..........[ OK ]
Start Backup HTTP Server
Instance 0 starting.......[FAILED]
2015-05-07T14:00:32.107+0000 [main] gid ERROR ServerMain:199 - Cannot start bslurp server [FATAL-EXITING] - instance: 0 - msg: unable to create new native thread
java.lang.OutOfMemoryError: unable to create new native thread
我似乎有很多记忆
[root@krh60621 ~]# free -m
total used free shared buffers cached
Mem: 15951 4588 11362 0 364 2021
我将最大进程数提高到无限制,看看这是否有帮助....
and I upped the max processes to unlimited to see if that would help....
[root@krh60621 ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127421
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 94000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@krh60621 ~]# ps -eLF| grep -c java
593
[root@krh60621 ~]# ps -eLF| wc -l
1031
有什么想法吗???
推荐答案
当我们升级到 Ops Manager 1.8.0 时,我在 Test Ops Manager 部署中遇到了类似的问题.我最终向 MongoDB 支持开了一张票,这是我们问题的解决方案:
I encountered a similar issue in our Test Ops Manager deployment when we upgraded to Ops Manager 1.8.0. I ultimately opened up a ticket with MongoDB Support and this was the resolution for our issue:
Ops Manager 组件使用默认用户名 "mongodb-mms"
启动.请调整此用户的 ulimit 设置以匹配当前在 /etc/security/limits.d/99-mongodb-mms-automation-agent.conf
中定义的mongodb"用户的设置.
The Ops Manager components are launched using the default username "mongodb-mms"
. Please adjust the ulimit settings for this user to match those of the "mongodb" user, currently defined in /etc/security/limits.d/99-mongodb-mms-automation-agent.conf
.
您可能希望在 /etc/security/limits.d/
下为 mongodb-mms
用户添加一个单独的文件.
You may wish to add a separate file under /etc/security/limits.d/
for the mongodb-mms
user.
可以在此处找到更多信息.
这篇关于MongoDB 在启动时安装简单的测试操作管理器 java.lang.OutOfMemoryError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!