查詢php程序使用內存狀況php
$size = memory_get_usage();
file_put_contents("d:/data.php", var_export($size/1024/1024 .';',true),8);內存
若是內存不夠,修改最大內存:memory_limit = 128Mget
若是仍是有問題續修改鏈接時間it
默認 max_execution_time = 30io
修改最大鏈接數據file
max_execution_time = 100程序