mongos can not accept any connect request

682 views
Skip to first unread message

Benk

unread,
Nov 12, 2012, 10:43:22 PM11/12/12
to mongodb-user
Hi all
when test mongodb, some times the mongos can not accept any connect request, and mongos log have the following information, is it the mongos creat max thread? how to fix it?
 
 
Mon Nov 12 15:40:49 [mongosMain] connection accepted from 192.168.165.185:33662 #5361677
Mon Nov 12 15:40:49 [conn5361301] end connection 192.168.165.187:50444
Mon Nov 12 15:40:49 [mongosMain] connection accepted from 192.168.165.187:50524 #5361678
Mon Nov 12 15:40:49 [mongosMain] pthread_create failed: errno:11 Resource temporarily unavailable
Mon Nov 12 15:40:49 [mongosMain] can't create new thread, closing connection
Mon Nov 12 15:40:49 [conn5361243] end connection 10.1.10.185:51666
Mon Nov 12 15:40:49 [conn5361199] end connection 192.168.165.186:42241
Mon Nov 12 15:40:49 [conn5361249] end connection 192.168.165.186:42256
Mon Nov 12 15:40:49 [mongosMain] connection accepted from 192.168.165.184:55369 #5361679
Mon Nov 12 15:40:49 [mongosMain] connection accepted from 192.168.165.187:50525 #5361680
Mon Nov 12 15:40:49 [mongosMain] connection accepted from 192.168.165.184:55370 #5361681
Mon Nov 12 15:40:49 [mongosMain] connection accepted from 192.168.165.185:33671 #5361682
Mon Nov 12 15:40:49 [mongosMain] pthread_create failed: errno:11 Resource temporarily unavailable
Mon Nov 12 15:40:49 [mongosMain] can't create new thread, closing connection
Mon Nov 12 15:40:49 [conn5361587] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
 
 
 
Mon Nov 12 15:40:49 [conn5361191] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Logstream::get called in uninitialized state
 
 
Mon Nov 12 15:40:49 [conn5361248] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361584] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361589] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361578] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361608] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
 
Mon Nov 12 15:40:49 [conn5361578] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361581] dbexit:  rc:100
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361607] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361226] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361220] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361592] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361592] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361248] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361584] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361191] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361579] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361226] dbexit:  rc:100
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361582] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361579] dbexit:  rc:100
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361593] ERROR: Uncaught std::exception: boost::thread_resource_error, terminating
Mon Nov 12 15:40:49 [conn5361582] dbexit:  rc:100
Logstream::get called in uninitialized stateMon Nov 12 15:40:49 [conn5361589] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361220] dbexit:  rc:100
 
Mon Nov 12 15:40:49 [conn5361608] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361607] dbexit:  rc:100
Mon Nov 12 15:40:49 [conn5361593] dbexit:  rc:100
Logstream::get called in uninitialized state
*** glibc detected *** /home/xmcache/mongodb/bin/mongos: malloc(): memory corruption: 0x000000000260251f ***
Received signal 11
Backtrace: ^@nal 11
Received siBacktrace: ^@nal 11
^@acktrace: ^@nal 11
Backtrace: ^@nal 11
Backtrace: Received siReceived signal 11
Backtrace: Backtrace: ^@nal 11
Backtrace: ^@nal 11
Backtrace: Backtrace: ^@nal 11
Backtrace: Backtrace: Backtrace: Backtrace: Backtrace: ^@nal 11
Backtrace: ^@nal 11
^@acktrace: Backtrace: Backtrace: ^@nal 11
Backtrace: Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361493] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361613] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361474] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361485] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Mon Nov 12 15:40:49 [conn5361247] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361561] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361597] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Mon Nov 12 15:40:49 [conn5361424] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Mon Nov 12 15:40:49 [conn5361363] sharded connection to xmshard/10.1.10.184:27017,10.1.10.185:27017,10.1.10.186:27017 not being returned to the pool
Logstream::get called in uninitialized state
Logstream::get called in uninitialized state
 

Benk

Sam Helman

unread,
Nov 13, 2012, 2:22:13 PM11/13/12
to mongod...@googlegroups.com, fly542
What are your current ulimit settings?  It is recommended to run mongodb with the -fnuv ulimits set as high as possible.  

Benk

unread,
Nov 13, 2012, 8:13:08 PM11/13/12
to mongodb-user

gregor

unread,
Nov 14, 2012, 3:30:17 AM11/14/12
to mongod...@googlegroups.com, fly542
Your ulmit -u settings are too low. 
Recommended settings here
Reply all
Reply to author
Forward
0 new messages