惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
量子位
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
雷峰网
雷峰网
I
InfoQ
罗磊的独立博客
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
博客园 - 三生石上(FineUI控件)
The GitHub Blog
The GitHub Blog
K
Kaspersky official blog
P
Privacy & Cybersecurity Law Blog
S
SegmentFault 最新的问题
T
Threat Research - Cisco Blogs
H
Help Net Security
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CERT Recently Published Vulnerability Notes
WordPress大学
WordPress大学
T
Tenable Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - Franky
A
Arctic Wolf
T
Threatpost
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
The Exploit Database - CXSecurity.com
G
GRAHAM CLULEY
Security Latest
Security Latest
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
V
Vulnerabilities – Threatpost
P
Privacy International News Feed
S
Schneier on Security
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com

博客园 - 东哥

HTTP Header 属性列表 安装卸载Windows服务,修改windows服务执行路径! SQL 语句嵌套,自己记录下。 基于RBAC的权限设计模型 javascript中getElementsByName的问题 三级连动JS数据库查询代码整理 动态添加WEB控件,点控件获取动态添加的控件 数据库基本----SQL语句大全 使用Ajax时的十个常犯的错误 数据采集程序(网页小偷)点滴心得 WEB Service 下实现大数据量的传输 [转]将上传图片打上防伪图片水印并写入数据库 我奋斗了18年不是为了和你一起喝咖啡(转载) [转]社区好友列表利用率越高,社区越失败 很实用的一个图片上传得例子 [转帖]教程:使用WebService进行异步通信 如何用Javascript记录登陆次数 很酷实用的右键弹出菜单(Js+DVML) JavaScript如果文字过长,则将过长的部分变成省略号显示
MongoVUE 错误:can't map file memory - mongo requires 64 bit build for larger datasets
东哥 · 2011-11-11 · via 博客园 - 东哥

处理一次32bit mongdb 数据超过2G问题

can't map file memory - mongo requires 64 bit build for larger datasets

�0�2

生产环境下某32bit windows机器安装了mongodb,一日数据超过2G

然后,任何操作都会报错

{
�0�2�0�2�0�2�0�2�0�2�0�2�0�2 "assertion" : "can't map file memory - mongo requires 64 bit build for larger datasets",
�0�2�0�2�0�2�0�2�0�2�0�2�0�2 "assertionCode" : 10084,
�0�2�0�2�0�2�0�2�0�2�0�2�0�2 "errmsg" : "db assertion failure",
�0�2�0�2�0�2�0�2�0�2�0�2�0�2 "ok" : 0
}

解决:

1.在windows机器拷贝下物理文件,拷贝到64bit linux机器

2.用原物理文件启动一个mongo实例

/usr/local/mongodb/bin/mongod --dbpath=/data1/mongodb/dataep/--logpath=/data1/mongodb/logs/mongodbep.log --logappend --fork --port=27010 --rest --profile=1 --slowms=500

�0�2

3.从新实例备份出需要的数据库

/usr/local/mongodb/bin/mongodump�0�2 --port 27010 -d ep -o /data1/backup/mongodbep/�0�2

4. 将备份文件还原到生产环境下mongodb

/usr/local/mongodb/bin/mongorestore�0�2 --host 172.21.5.49 --port 21017 -d ep /data1/backup/mongodbep/ep/

�0�2