Forums | Mahara Community
Receive file and view are slow
09 July 2015, 2:17 PM
I am using Mahara 1.9 and found that the file receive from the system is slow, sometimes get file need more than 6 minutes. However, the database and web server were not busy.
Here is the apache log:
xxx.xxx.xxx.xxx - - [09/Jul/2015:10:03:16 +0800] "GET /artefact/file/download.php?file=292567&view=10917 HTTP/1.1" 200 67160 "https://mahara.mysite.com/user/view.php?id=2259" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36" 360/360407227 "-"
Any idea above this issue?
10 July 2015, 6:15 PM
The call to the artefact/file/download.php file simply checks if you are allowed to get the file and if so fetches the file from the dataroot and parses it through.
If this is going slow it could be due to the file being very large or the bandwidth speed being low.
13 July 2015, 1:22 PM
I find that the files are very small so it should not be a bandwidth issue. What other facters related to this issue?
14 July 2015, 8:56 PM
My site have more than 280GByte of user data.
Most of the files are located inside Group file folder and user's personal folder.
I have testing with /artefact/file/index.php to load a user's personal folder with 25 file in the first level. The process take more than 5 minutes to complete.
I find that the PHP gives all 25 files and generate the thumbnails.
The time taken for the thumbnails cost 30, 60, 90, 120, 150, 180 seconds to complete.
It seems there is a timeout setting and set to 30.
Can I manually change this value to a lower ones said 1 or 2 sec?