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

背景:MongoDB v . . 错误:OperationFailed: Sort operation used more than the maximum , , bytes of RAM. Add an index, or specify a smaller limit. on server 修改:增加 sort memory 修改当前运行时 重启MongoDB失效 . 查询现有配置 . 更新 ...

2020-09-23 12:46 0 444 推荐指数:

查看详情

OperationFailed Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit

  按照错误提示,知道这是排序的时候报的错,因为 mongo 的 sort 操作是在内存中操作的,必然会占据内存,同时mongo 内的一个机制限制排序时最大内存为 32M,当排序的数据量超过 32M,就会报上面的这个错,解决办法就像上面提示的意思,一是加大 mongo 的排序内存,这个一般是运维 ...

Fri May 11 18:59:00 CST 2018 0 1352
Query failed with error code 96 and error message 'Executor error during find command: OperationFailed: Sort operation used more than the maximum

首先问题很明确,当我对一个没有建索引的字段做find,然后做sort的时候,可能触发sort的size的32MB限制,而mongodbsort操作是把数据拿到内存中再进行排序的,为了节约内存,默认给sort操作限制了最大内存为32Mb,当数据量越来越大直到超过32Mb的时候就自然抛出异常 ...

Tue Jun 11 00:59:00 CST 2019 0 982
More than the maximum number of request parameters

前些时间,我们的的一个管理系统出现了点问题,原本运行的好好的功能,业务方突然讲不行了,那个应用已经运行了好多年了,并且对应的代码最近谁也没改动过,好奇怪的问题,为了解决此问题,我们查看了日志,发现请求的参数压根没有传到后台控制器之中,奇怪了!明明前端传递了好多参数过来了呀!线上系统比较重要,又需要 ...

Sun Aug 06 00:26:00 CST 2017 0 1483
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM