How to force download of big files without using too much memory?

后端 未结 6 1292
清歌不尽
清歌不尽 2021-02-15 06:33

I\'m trying to serve large zip files to users. When there are 2 concurrent connections, the server runs out of memory (RAM). I increased the amount of memory from 300MB to 4GB (

6条回答
  •  萌比男神i
    2021-02-15 07:16

    Symlink the big file to your document root (assuming its not an authorized only file), then let Apache handle it. (That way you can accept byte ranges as well)

提交回复
热议问题