开发程序报错信息: Caused by: com.mongodb.MongoException: Executor error: OperationFailed: Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit. 从程序报错中可以看到是排序的内存不足. 解决办法:3.x版本 use admin db.adminCommand({get…