可能是下面说的这个问题么
你这个基本属于能必现的问题 理论上用二分法很快能定位问题的
https://bugs.php.net/bug.php?id=76436 [2019-08-14 21:50 UTC] phpbug at ethaniel dot com
I have this problem in PHP 5.6.40 on Centos 7.6.
This simple code triggers it. I just read around 1 million rows from the table and my memory usage is just growing higher and higher.
$cnt = 0;
$result = mysqli_query($conn,"SELECT `text`,`sms_date`,`to` FROM `sms_data`.`sms_201933`;");
while ($row = mysqli_fetch_object($result)) {
if ($cnt%1000) {
echo memory_get_usage()." *** \n\n";
}
$cnt++;
}