首页 > 数据库技术 > 详细

[MongoDB] - 对于"OperationFailed: Sort operation used more than the maximum 33554432 bytes of RAM"问题的优化

时间:2020-09-23 13:39:16      阅读:77      评论:0      收藏:0      [点我收藏+]

背景:MongoDB v4.2.7

错误:OperationFailed: Sort operation used more than the maximum 33,554,432 bytes of RAM. Add an index, or specify a smaller limit.’ on server

修改:增加 sort memory

1. 查询现有配置

db.adminCommand({getParameter: *})

技术分享图片

 

 2. 更新配置

db.adminCommand({"setParameter":1,"internalQueryExecMaxBlockingSortBytes":335544320})

技术分享图片

 

参考资料

https://mobilemonitoringsolutions.com/memory-errors-mongodb-resolve/

[MongoDB] - 对于"OperationFailed: Sort operation used more than the maximum 33554432 bytes of RAM"问题的优化

原文:https://www.cnblogs.com/jinzesudawei/p/13717275.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!