XFileSharing Pro - Semaphore array's

Message
Author
Upload Spot
Posts: 5
Joined: Aug 11, 2008 5:36 pm

Semaphore array's

#1 Postby Upload Spot » Aug 11, 2008 5:39 pm

It appears that the script is having issues with my server, and apache is creating too many semaphore array's - so much that it crashed my apache earlier today.

ipcs -s | wc -l

I haven't had this problem before, is there any suggestions of how to fix this?

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

#2 Postby PilgrimX182 » Aug 12, 2008 7:03 am

I don't know what semaphore array is. But I think this may be cause you have too many ajax requests per second. Try to increase upload progress update time: in upload_status.cgi edit this line:

Code: Select all

my $pause = $MB && $total>10 ? 2000 : 1000; #longer pauses if >10Mb
increase these 1000 & 2000 delays to 2000 and 5000 maybe.

Upload Spot
Posts: 5
Joined: Aug 11, 2008 5:36 pm

#3 Postby Upload Spot » Aug 12, 2008 3:30 pm

I'll see if this changes anything, thanks.

I hadn't heard of them either.