背景: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. ...
在 mongo 使用过程中遇到了一个问题,需求就是要对mongo 库中查询到数据进行分页,mongo库我们知道都会存储大容量的数据,如果库里数据多的话,这时会报一个Query failed with error code and error message Executor error during find command:OperationFailed: Sort operation used ...
2018-06-24 09:20 0 991 推荐指数:
背景: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. ...
按照错误提示,知道这是排序的时候报的错,因为 mongo 的 sort 操作是在内存中操作的,必然会占据内存,同时mongo 内的一个机制限制排序时最大内存为 32M,当排序的数据量超过 32M,就会报上面的这个错,解决办法就像上面提示的意思,一是加大 mongo 的排序内存,这个一般是运维 ...
首先问题很明确,当我对一个没有建索引的字段做find,然后做sort的时候,可能触发sort的size的32MB限制,而mongodb的sort操作是把数据拿到内存中再进行排序的,为了节约内存,默认给sort操作限制了最大内存为32Mb,当数据量越来越大直到超过32Mb的时候就自然抛出异常 ...
前些时间,我们的的一个管理系统出现了点问题,原本运行的好好的功能,业务方突然讲不行了,那个应用已经运行了好多年了,并且对应的代码最近谁也没改动过,好奇怪的问题,为了解决此问题,我们查看了日志,发现请求 ...
故,修改配置,添加maxHttpHeaderSize="65536" maxPostSize="4194304" 因为tomca ...
点击返回:自学Zabbix之路 点击返回:自学Zabbix4.0之路 点击返回:自学zabbix集锦 13 Zabbix4.4.1系统告警“More than 75% used in the configuration cache” More than 75% used ...
More than 75% used in the configuration cache, 可用的配置缓存超过75%。 解决办法: 更改默认缓存配置的大小。 默认CacheSize只有8M,可根据自己需求改大即可。 ...
mysql报错Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage 在执行create table xx as select xx的时候 或者在执行 ...