2016-10-20 10 views
0

ダウンロードするには何千もの行があります。 Maatwebsiteパッケージを使用しています。 エラーが発生しました。laravel excel export download

[2016-10-20 11:22:00] local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Allowed memory size of 524288000 bytes exhausted (tried to allocate 4194304 bytes)' #0 [internal function]: Illuminate\Exception\Handler->handleShutdown() #1 {main} [] []

私は

ini_set('max_execution_time', 2000); 
ini_set('memory_limit', '2000M'); 

答えて

0

てみ設定されている:

ini_set('max_execution_time', 0); 
ini_set("memory_limit",-1); 

をしかし、これはハックです。スクリプトが取っている時間とメモリを減らす方法を見つけなければなりません。常に最適化できる可能性があります。

関連する問題