XFileSharing Pro - Generating direct download link taking lots of time

Message
Author
naga
Posts: 45
Joined: Dec 22, 2008 3:40 pm

Generating direct download link taking lots of time

#1 Postby naga » Mar 02, 2009 8:34 am

Hi, i have it set so everyone can create a direct download link, but it's taking way to long to generate it (10seconds).

my file server has no load and it's running on RAID10 and it shouldn't have delays.

what can be causing this?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Mar 02, 2009 10:46 pm

Hmmm...when generating direct link Main server connects to api.cgi on File server and it create subdirectory in /files/ folder, then creates symlink to original file there. Not sure what's slow in this process: connecting to Fileserver or creating folders/symlinks.

Deleting file takes long or not?

naga
Posts: 45
Joined: Dec 22, 2008 3:40 pm

#3 Postby naga » Mar 05, 2009 8:58 am

well, to fix this problem i restart httpd but then it occurs again after a while.

this is very troublesome, i cant be on my site to restart httpd everytime it fucks up daily.

/etc/init.d/httpd restart is the command i use...

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Mar 06, 2009 3:01 am

Only can recommend you to lower keepalive timeout a lot. Also there could be some number of connections limit in apache which queue requests. Don't know...I'm not your server administrator.

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#5 Postby Timmy » Mar 23, 2010 2:45 pm

PilgrimX182 wrote:Only can recommend you to lower keepalive timeout a lot. Also there could be some number of connections limit in apache which queue requests. Don't know...I'm not your server administrator.
PilgrimX182, I have the same problem... what value do you recommend in keepalive timeout?

naga
Posts: 45
Joined: Dec 22, 2008 3:40 pm

#6 Postby naga » Mar 24, 2010 1:48 pm

Hi, just for a reference.
I fixed this problem by not using apache to serve files

cgi bin stuff => apache2
file serving => lighttpd

Timmy
Posts: 146
Joined: Feb 10, 2010 8:17 pm

#7 Postby Timmy » Mar 24, 2010 6:32 pm

Well, in my case was my internet connection... I changed ISP and now I dont have any problem at all with the script :D