线上出现报错 Memory allocation error:

leedom

问题描述

线上打包二进制部署项目, 一个接口出现报错

PDOException:SOLSTATE[HY001]: Memory allocation error: 1038 0ut of sort memory,
consider increasing server sort buffer size in phar:/.../vendor/illuminate/database/connection.php

程序代码

$paginator = $model->orderByDesc("created_at")->orderBy($orderBy, $asc)->paginate($page_size);
$total = $paginator->total();
$items = $paginator->items();

截图报错信息里报错文件相关代码

数据库设置

[mysqld] 
sort_buffer_size = 256000000

操作系统及workerman/webman等框架组件具体版本

centos
"workerman/webman-framework":1.5.16

请教问题应该是在哪里?本地部署没有这种情况

97 0 0
0个回答

×
🔝