- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
当我们运行 db.stats() 时,我们的生产数据库(64 位 debian 上的 2.2.1)抛出以下错误:
> db.stats()
{
"errmsg" : "exception: Invalid BSONObj size: 0 (0x00000000) first element: EOO",
"code" : 10334,
"ok" : 0
}
以下内容出现在我们的日志中:
Fri Feb 1 16:28:46 [conn4081] Assertion: 10334:Invalid BSONObj size: 0 (0x00000000) first element: EOO
0xaf8c41 0xabedb9 0xabef3c 0x571fb7 0x6e880d 0x6f6411 0x6e8321 0x6e9cb0 0x6eab4c 0x830028 0x83376b 0x7b0b0d 0x7b20e2 0x56fe42 0xae6ed1 0x7fe7645378ba 0x7fe7638eb02d
/opt/mongodb/bin/mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xaf8c41]
/opt/mongodb/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x99) [0xabedb9]
/opt/mongodb/bin/mongod() [0xabef3c]
/opt/mongodb/bin/mongod(_ZNK5mongo7BSONObj14_assertInvalidEv+0x497) [0x571fb7]
/opt/mongodb/bin/mongod() [0x6e880d]
/opt/mongodb/bin/mongod(_ZN5mongo7DBStats3runERKSsRNS_7BSONObjEiRSsRNS_14BSONObjBuilderEb+0x321) [0x6f6411]
/opt/mongodb/bin/mongod(_ZN5mongo12_execCommandEPNS_7CommandERKSsRNS_7BSONObjEiRNS_14BSONObjBuilderEb+0x51) [0x6e8321]
/opt/mongodb/bin/mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xe70) [0x6e9cb0]
/opt/mongodb/bin/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x2ac) [0x6eab4c]
/opt/mongodb/bin/mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_11_BufBuilderINS_16TrivialAllocatorEEERNS_14BSONObjBuilderEbi+0x38) [0x830028]
/opt/mongodb/bin/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1_+0xc0b) [0x83376b]
/opt/mongodb/bin/mongod() [0x7b0b0d]
/opt/mongodb/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0x3a2) [0x7b20e2]
/opt/mongodb/bin/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x82) [0x56fe42]
/opt/mongodb/bin/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x411) [0xae6ed1]
/lib/libpthread.so.0(+0x68ba) [0x7fe7645378ba]
/lib/libc.so.6(clone+0x6d) [0x7fe7638eb02d]
我们对此非常关注。有任何想法吗?我在网上能找到的都是陈旧的、不确定的。
这里是一些更多的信息:
> db.serverStatus()
{
"host" : "hellboy",
"version" : "2.2.1",
"process" : "mongod",
"pid" : 1432,
"uptime" : 2672006,
"uptimeMillis" : NumberLong("2672006216"),
"uptimeEstimate" : 2626689,
"localTime" : ISODate("2013-02-01T23:03:16.304Z"),
"locks" : {
"." : {
"timeLockedMicros" : {
"R" : NumberLong(333024517),
"W" : NumberLong("54808066962")
},
"timeAcquiringMicros" : {
"R" : NumberLong("30969573082"),
"W" : NumberLong("4107434021")
}
},
"admin" : {
"timeLockedMicros" : {
"r" : NumberLong(5942684),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(48432),
"w" : NumberLong(0)
}
},
"local" : {
"timeLockedMicros" : {
"r" : NumberLong(1109128),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(82283399),
"w" : NumberLong(0)
}
},
"gc" : {
"timeLockedMicros" : {
"r" : NumberLong("171460799918"),
"w" : NumberLong("171384959016")
},
"timeAcquiringMicros" : {
"r" : NumberLong("1816006512260"),
"w" : NumberLong("3169374123999")
}
}
},
"globalLock" : {
"totalTime" : NumberLong("2672006216000"),
"lockTime" : NumberLong("54808066962"),
"currentQueue" : {
"total" : 0,
"readers" : 0,
"writers" : 0
},
"activeClients" : {
"total" : 0,
"readers" : 0,
"writers" : 0
}
},
"mem" : {
"bits" : 64,
"resident" : 4212,
"virtual" : 443165,
"supported" : true,
"mapped" : 221237,
"mappedWithJournal" : 442474
},
"connections" : {
"current" : 364,
"available" : 455
},
"extra_info" : {
"note" : "fields vary by platform",
"heap_usage_bytes" : 77840056,
"page_faults" : 15189196
},
"indexCounters" : {
"btree" : {
"accesses" : 1490093267,
"hits" : 1490093267,
"misses" : 0,
"resets" : 0,
"missRatio" : 0
}
},
"backgroundFlushing" : {
"flushes" : 36144,
"total_ms" : 614413596,
"average_ms" : 16999.048140770254,
"last_ms" : 352,
"last_finished" : ISODate("2013-02-01T23:02:43.221Z")
},
"cursors" : {
"totalOpen" : 5,
"clientCursors_size" : 5,
"timedOut" : 3,
"totalNoTimeout" : 5
},
"network" : {
"bytesIn" : 53731292608,
"bytesOut" : NumberLong("2215346701908"),
"numRequests" : 264535004
},
"opcounters" : {
"insert" : 83515158,
"query" : 141076950,
"update" : 21415981,
"delete" : 98,
"getmore" : 685956,
"command" : 18499441
},
"asserts" : {
"regular" : 0,
"warning" : 57,
"msg" : 0,
"user" : 0,
"rollovers" : 0
},
"writeBacksQueued" : false,
"dur" : {
"commits" : 30,
"journaledMB" : 0,
"writeToDataFilesMB" : 0,
"compression" : 0,
"commitsInWriteLock" : 0,
"earlyCommits" : 0,
"timeMs" : {
"dt" : 3074,
"prepLogBuffer" : 0,
"writeToJournal" : 0,
"writeToDataFiles" : 0,
"remapPrivateView" : 0
}
},
"recordStats" : {
"accessesNotInMemory" : 3070244,
"pageFaultExceptionsThrown" : 1124345,
"admin" : {
"accessesNotInMemory" : 0,
"pageFaultExceptionsThrown" : 0
},
"gc" : {
"accessesNotInMemory" : 3070244,
"pageFaultExceptionsThrown" : 1124345
},
"local" : {
"accessesNotInMemory" : 0,
"pageFaultExceptionsThrown" : 0
}
},
"ok" : 1
}
最佳答案
我们的副本集和执行使用本地有同样的问题; db.repairDatabase()
清除问题
关于mongodb - 在生产 MongoDB 上运行 db.stats() 时担心无效的 BSONObj 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14657406/
我刚刚开始使用 data-* 属性来存储查看所需的自定义属性和值。例如 。 基于data-*我正在做一些操作(CRUD)。如果用户在客户端更改 data-* 属性值(即使用 firebug 和其他
我想知道是否有人可以指出正确的方向。我最近开始使用 LinqToSQL 并喜欢强类型数据对象等。 我只是在努力了解对数据库性能等的影响。例如,假设我正在开发一个简单的用户配置文件页面。该页面显示有关用
我正在开发一个有文本区域的 Angular 应用程序。此文本区域的内容随后用于填充输入文本的预览。所有这些都在客户端完成。我担心有人能够将代码注入(inject)我的应用程序,例如 /*So
我在一台机器上运行 CDH 5.6(Hadoop 2.6,HBase 1.0.0)。只有 Hadoop 和 HBase 在运行。 Hadoop 配置为复制因子 1,Hbase 运行在 HDFS 之上,
在 SO 和其他地方,如果没有人礼貌地指出最好使用参数化输入和存储过程,几乎不可能在示例代码中发布长连接的 SQL 指令。 最近的示例 here . 但是担心 Winforms 项目中的 SQL 注入
未受攻击的计算机上的 Web 应用程序在不安全的 WiFi 环境中容易受到 XSS、CRSF、sql 注入(inject)攻击和 cookie 窃取。 为了防止这些安全问题,有以下补救措施 sql注入
我在一个执行数值计算的库上工作了一段时间。它是用纯原生 C++ 编写的,直到现在我一直在使用简单的控制台应用程序来测试它的功能。 是时候在库的顶部构建一个 GUI - 以更好地显示结果表并以图形形式呈
我是一名优秀的程序员,十分优秀!