在向运行在 Windows Server 2008 R2 上的 MongoDB 2.2.3 分片执行插入操作期间,分片中的一个复制崩溃,日志文件如下所示。
由于问题似乎源于缺少页面文件,我尝试将其大小从 8gb 增加一倍到 15gb,但这并没有改变我无法启动复制的问题。
这是一个已知的错误吗?有解决办法吗?
如果需要任何其他信息,请发表评论。
崩溃时记录
Wed Feb 27 09:02:03 [initandlisten] connection accepted from 192.168.159.29:53112 #16840 (14 connections now open)
Wed Feb 27 09:02:21 [conn16839] end connection 192.168.159.26:63150 (13 connections now open)
Wed Feb 27 09:02:21 [initandlisten] connection accepted from 192.168.159.26:63153 #16841 (14 connections now open)
Wed Feb 27 09:02:28 [repl writer worker 1] VirtualProtect for E:/MongoDB/data/api.62 chunk 8245 failed with errno:1455 The paging file is too small for this operation to complete. (chunk size is 67108864, address is 80d4000000) in mongo::makeChunkWritable, terminating
Wed Feb 27 09:02:28 [repl writer worker 1] api.commhistory Fatal Assertion 16362
Wed Feb 27 09:02:33 [conn16840] end connection 192.168.159.29:53112 (13 connections now open)
Wed Feb 27 09:02:33 [initandlisten] connection accepted from 192.168.159.29:62053 #16842 (14 connections now open)
我尝试重新启动它,但是,大约 20 秒后它再次崩溃并显示以下日志
Wed Feb 27 09:22:35 [rsBackgroundSync] replSet syncing to: MASB-MGO-MGO01:27017
Wed Feb 27 09:22:35 [rsSync] replSet still syncing, not yet to minValid optime 512dcba3:c
Wed Feb 27 09:22:36 [rsSyncNotifier] replset setting oplog notifier to MASB-MGO-MGO01:27017
Wed Feb 27 09:22:37 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017
Wed Feb 27 09:22:41 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017
Wed Feb 27 09:22:45 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017
Wed Feb 27 09:22:46 [repl writer worker 1] VirtualProtect for E:/MongoDB/data/api.68 chunk 10164 failed with errno:1455 The paging file is too small for this operation to complete. (chunk size is 67108864, address is 9ed0000000) in mongo::makeChunkWritable, terminating
Wed Feb 27 09:22:46 [repl writer worker 1] api.commhistory Fatal Assertion 16362
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\stacktrace.cpp(182) mongo::printStackTrace+0x3e
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\assert_util.cpp(126) mongo::fassertFailed+0x43
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\mmap_win.cpp(264) mongo::makeChunkWritable+0x342
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\mmap.h(274) mongo::MemoryMappedFile::makeWritable+0x56
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\dur_commitjob.cpp(93) mongo::dur::DurableImpl::declareWriteIntent+0x5f
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\dur.cpp(239) mongo::dur::DurableImpl::writingAtOffset+0x18
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\btree.cpp(406) mongo::BucketBasics<mongo::BtreeData_V1>::basicInsert+0xcd
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\btree.cpp(1309) mongo::BtreeBucket<mongo::BtreeData_V1>::insertHere+0xa0
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\index_insertion_continuation.h(66) mongo::IndexInsertionContinuationImpl<mongo::BtreeData_V1>::doIndexInsertionWrites+0xda
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\index_update.cpp(146) mongo::indexRecordUsingTwoSteps+0x77a
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\pdfile.cpp(1546) mongo::DataFileMgr::insert+0x845
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\pdfile.cpp(1273) mongo::DataFileMgr::insertWithObjMod+0x48
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\ops\update.cpp(203) mongo::_updateObjects+0x4c2
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\oplog.cpp(780) mongo::applyOperation_inlock+0x507
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\repl\rs_sync.cpp(84) mongo::replset::SyncTail::syncApply+0x245
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\db\repl\rs_sync.cpp(121) mongo::replset::multiSyncApply+0x65
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\mongo\util\concurrency\thread_pool.cpp(66) mongo::threadpool::Worker::loop+0x94
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe ...\src\third_party\boost\libs\thread\src\win32\thread.cpp(180) boost::`anonymous namespace'::thread_start_function+0x21
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(314) _callthreadstartex+0x17
Wed Feb 27 09:22:48 [repl writer worker 1] mongod.exe f:\dd\vctools\crt_bld\self_64_amd64\crt\src\threadex.c(292) _threadstartex+0x7f
Wed Feb 27 09:22:48 [repl writer worker 1]
***aborting after fassert() failure
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.26:64223 #17 (14 connections now open)
Wed Feb 27 09:23:44 [conn3] end connection 192.168.159.24:5105 (13 connections now open)
Wed Feb 27 09:23:44 [conn10] end connection 192.168.159.25:51584 (12 connections now open)
Wed Feb 27 09:23:44 [conn11] end connection 192.168.159.22:50242 (11 connections now open)
Wed Feb 27 09:23:44 [conn15] end connection 192.168.159.26:64205 (10 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.25:51595 #18 (11 connections now open)
Wed Feb 27 09:23:44 [conn5] end connection 192.168.159.23:54657 (9 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.24:5118 #19 (11 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.23:54671 #20 (12 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.22:50255 #21 (13 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.26:64230 #22 (14 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.26:64237 #23 (15 connections now open)
Wed Feb 27 09:23:44 [initandlisten] connection accepted from 192.168.159.25:51602 #24 (16 connections now open)
Wed Feb 27 09:23:44 [rsHealthPoll] couldn't connect to MASB-MGO-RPL02:27017: couldn't connect to server MASB-MGO-RPL02:27017
复制服务器信息
Operating System
Microsoft Windows Server 2008 R2 Standard 64-bit SP1
CPU
Intel Xeon E5 @ 2.60GHz
Sandy Bridge-EP/EX 32nm Technology
Intel Xeon E5 @ 2.60GHz
Sandy Bridge-EP/EX 32nm Technology
Intel Xeon E5 @ 2.60GHz
Sandy Bridge-EP/EX 32nm Technology
Intel Xeon E5 @ 2.60GHz
Sandy Bridge-EP/EX 32nm Technology
RAM
8.00 GB EDO (3-3-3-?)
最佳答案
事实证明,它确实是由于页面文件太小而发生的。尽管将它从 8gb 增加到 15gb 没有帮助,但将它增加更多,增加到 30gb 使 MongoDB 可以正常备份。
MongoDB 不接受将虚拟内存大小加倍这一事实在我看来仍然很奇怪。
所以...如果您遇到此类错误,请尝试不断增加虚拟内存,这应该会有所帮助。
关于windows - MongoDB 复制崩溃并且无法再次启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15185958/
我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0
我在从html页面生成PDF时遇到问题。我正在使用PDFkit。在安装它的过程中,我注意到我需要wkhtmltopdf。所以我也安装了它。我做了PDFkit的文档所说的一切......现在我在尝试加载PDF时遇到了这个错误。这里是错误:commandfailed:"/usr/local/bin/wkhtmltopdf""--margin-right""0.75in""--page-size""Letter""--margin-top""0.75in""--margin-bottom""0.75in""--encoding""UTF-8""--margin-left""0.75in""-
为了将Cucumber用于命令行脚本,我按照提供的说明安装了arubagem。它在我的Gemfile中,我可以验证是否安装了正确的版本并且我已经包含了require'aruba/cucumber'在'features/env.rb'中为了确保它能正常工作,我写了以下场景:@announceScenario:Testingcucumber/arubaGivenablankslateThentheoutputfrom"ls-la"shouldcontain"drw"假设事情应该失败。它确实失败了,但失败的原因是错误的:@announceScenario:Testingcucumber/ar
我对最新版本的Rails有疑问。我创建了一个新应用程序(railsnewMyProject),但我没有脚本/生成,只有脚本/rails,当我输入ruby./script/railsgeneratepluginmy_plugin"Couldnotfindgeneratorplugin.".你知道如何生成插件模板吗?没有这个命令可以创建插件吗?PS:我正在使用Rails3.2.1和ruby1.8.7[universal-darwin11.0] 最佳答案 随着Rails3.2.0的发布,插件生成器已经被移除。查看变更日志here.现在
我尝试运行2.x应用程序。我使用rvm并为此应用程序设置其他版本的ruby:$rvmuseree-1.8.7-head我尝试运行服务器,然后出现很多错误:$script/serverNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/Users/serg/rails_projects_terminal/work_proj/spohelp/config/../vendor/rails/railties/lib/r
我正在尝试在我的centos服务器上安装therubyracer,但遇到了麻烦。$geminstalltherubyracerBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingtherubyracer:ERROR:Failedtobuildgemnativeextension./usr/local/rvm/rubies/ruby-1.9.3-p125/bin/rubyextconf.rbcheckingformain()in-lpthread...yescheckingforv8.h...no***e
我花了三天的时间用头撞墙,试图弄清楚为什么简单的“rake”不能通过我的规范文件。如果您遇到这种情况:任何文件夹路径中都不要有空格!。严重地。事实上,从现在开始,您命名的任何内容都没有空格。这是我的控制台输出:(在/Users/*****/Desktop/LearningRuby/learn_ruby)$rake/Users/*******/Desktop/LearningRuby/learn_ruby/00_hello/hello_spec.rb:116:in`require':cannotloadsuchfile--hello(LoadError) 最佳
当我在Rails控制台中按向上或向左箭头时,出现此错误:irb(main):001:0>/Users/me/.rvm/gems/ruby-2.0.0-p247/gems/rb-readline-0.4.2/lib/rbreadline.rb:4269:in`blockin_rl_dispatch_subseq':invalidbytesequenceinUTF-8(ArgumentError)我使用rvm来管理我的ruby安装。我正在使用=>ruby-2.0.0-p247[x86_64]我使用bundle来管理我的gem,并且我有rb-readline(0.4.2)(人们推荐的最少
最近,当我启动我的Rails服务器时,我收到了一长串警告。虽然它不影响我的应用程序,但我想知道如何解决这些警告。我的估计是imagemagick以某种方式被调用了两次?当我在警告前后检查我的git日志时。我想知道如何解决这个问题。-bcrypt-ruby(3.1.2)-better_errors(1.0.1)+bcrypt(3.1.7)+bcrypt-ruby(3.1.5)-bcrypt(>=3.1.3)+better_errors(1.1.0)bcrypt和imagemagick有关系吗?/Users/rbchris/.rbenv/versions/2.0.0-p247/lib/ru
我在pry中定义了一个函数:to_s,但我无法调用它。这个方法去哪里了,怎么调用?pry(main)>defto_spry(main)*'hello'pry(main)*endpry(main)>to_s=>"main"我的ruby版本是2.1.2看了一些答案和搜索后,我认为我得到了正确的答案:这个方法用在什么地方?在irb或pry中定义方法时,会转到Object.instance_methods[1]pry(main)>defto_s[1]pry(main)*'hello'[1]pry(main)*end=>:to_s[2]pry(main)>defhello[2]pry(main)